- Home /
running an exe with js
i want to shell an exe (videoplayer.exe) from my unity project with javascript
Comment
Best Answer
Answer by YoshieMaster · Jan 01, 2011 at 07:38 AM
I believe that this code should work: import System.Diagnostics;
var arguments = "myvideo";
var program = "videoplayer.exe";
var myProcess = new Process();
myProcess.StartInfo.FileName = program;
myProcess.StartInfo.Arguments = arguments;
myProcess.Start();
Your welcome. Just a note, this wont work in webplayer for obvious reasons.