Page 1 of 1

Running a program

Posted: 03 Sep 2011 11:31
by sudarson
Can I run external file from the script file?
e.g I want to run javac and java from a script file where the file will be current document .java file. Is it possible.
N.B. I have tried WScript.CreateObject("WScript.Shell"), but it is not working.

Re: Running a program

Posted: 03 Sep 2011 15:14
by jgodfrey
While I'm not sure how to call an external program from a script, you could always write a DOS batch file that contains your commands and accepts appropriate arguments from the command line. Then, just define a custom tool in TextEd to call your batch file and pass the info needed. I think that would get you to the same place as calling the java tools from a script.

Jeff