windows - How to open a file from the command line with a specified program? -
i open pdf in photoshop command line. current issue right default application opening pdfs adobe acrobat. i'm wondering if there parameter can pass specify program use when opening file.
in other words, want emulate option of "open-with" when right-click file open non-default application, command line.
i not want change default application pdfs photoshop.
any ideas?
all need provide filename command line argument:
photoshop <path file>
(<path file> needs quoted if contains spaces)
for example:
photoshop "c:\users\csterling\documents\some document.pdf"
if directory containing photoshop.exe isn't in path environment variable, you'll need provide full path:
"c:\program files\adobe\photoshop\photoshop" "c:\users\csterling\documents\some document.pdf"
this isn't feature of command prompt, it's feature of executable, i.e. photoshop.exe has programmed accept file open command line argument. fortunately, is, majority of windows applications operate on files.
Comments
Post a Comment