Skip to main content
Nov 25, 2009 11:21 PM UTC
Answered

Fileobject.execute

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 is closed to new replies. Start a new post to keep the conversation going.
Paul Riggott
Paul RiggottCorrect answer
Inspiring
Nov 26, 2009 8:38 AM UTC

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.

2 replies

Paul Riggott
Paul RiggottCorrect answer
Inspiring
Nov 26, 2009 8:38 AM UTC

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.

Translate
Nov 30, 2009 5:00 AM UTC

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.

Translate