Running a program

Ask questions about how to create a script or swap scripts with other users.
Post Reply
sudarson
Posts: 1
Joined: 03 Sep 2011 11:18

Running a program

Post 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.
jgodfrey
Posts: 471
Joined: 19 Aug 2011 23:02
Location: Missouri, USA

Re: Running a program

Post 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
Post Reply