Hello guys,
I'm trying to develop a application that calls another exe from my code base. The method to execute is pasted below...
private void mymethod(FileInfo file)
{
ProcessStartInfo startInfo = new ProcessStartInfo("jsmin.exe");
startInfo.Arguments = "<fulljslint.js >jslint.js";
Process p = new Process();
p.StartInfo = startInfo;
p.Start();
p.WaitForExit();
}
The issue is the command line arguemnts produce the following output when run..
//<fulljslint.js
//>jslint.js
Why is this? Its like its putting "\n" characters within the arguments.
The calling application is...
http://www.crockford.com/javascript/jsmin.html
thanks