Skip navigation
Home/Support/

Forums

913 Views 4 Replies Latest reply: Jul 31, 2009 2:02 PM by kumar1981 RSS
kumar1981 User 34 posts since
May 27, 2009
Currently Being Moderated

Jul 31, 2009 6:12 AM

Run .bat file with arguments?

Hi,

 

   I need to run the .bat file with parameters/arguments in Adode Indesign JavaScript. "File.execute()" executes the file using the appropriate application.It executes the .bat file suceessfully.But I am unable to pass the arguments.I need to execute the command like

Eg : test.bat parameter1 parameter2

 

var myFile=new File("c:\\test.bat");

myFile.execute();

 

The above statements works fine. Is it possible to execute the with parameters. Please suggest the solution to above problem.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points