Skip to main content
November 25, 2009
Answered

Fileobject.execute

  • November 25, 2009
  • 1 reply
  • 642 views

Is there a way to combine a filename plus commandline switches into a File Object such that it can be used in a File.execute action?  For example:

var pgm = File("c:/windows/explorer.exe")

then somehow concatenate a "/e" or "/root"  resulting in:

pgm.execute(); that actually works?

This topic has been closed for replies.
Correct answer Paul Riggott

Sorry but can't be done, you need the system command to do something like that

system("mycomand -whatever");

otherwise you need to write the command out to a bat file and execute that.

1 reply

Paul Riggott
Paul RiggottCorrect answer
Inspiring
November 26, 2009

Sorry but can't be done, you need the system command to do something like that

system("mycomand -whatever");

otherwise you need to write the command out to a bat file and execute that.

November 30, 2009

An excellent reason all the way around to use CS4.  If the LX3 was supported in CS3, there wouldn't be the need to use DNG Converter, or worry about scripting this portion of the workflow process.  Thank you.