Hi, I’m trying to run a command through command prompt to have a program(phamtomjs) to run a javascript(chord_phamtomjs_test) and I’m able to do it in command prompt by getting to the directory by using cd commands and then once I’m in the directory with the application I enter this command “phantomjs chord_phantomjs_test.js” and the javascript executes. I’m trying to get this to work through unity and so far I’ve been able to open notepad with the following code.
function Start{
var strCmdTex:String;
strCmdText= "/C notepad";
System.Diagnostics.Process.Start("CMD.exe",strCmdText); //Start cmd process
}
I’m not sure where to go from here. Any help would be appriciated. Thanks