Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fileobject.execute

Guest
Nov 25, 2009 Nov 25, 2009

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?

TOPICS
Scripting
621
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Nov 26, 2009 Nov 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.

Translate
Valorous Hero ,
Nov 26, 2009 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 29, 2009 Nov 29, 2009
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines