1
我試圖運行PhantomJs.exe
拋出C#代碼。 我的代碼:從命令提示符使用C運行PhantomJs#
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.WindowStyle = ProcessWindowStyle.Normal;
startInfo.FileName = "cmd.exe";
startInfo.WorkingDirectory = @"E:\";
startInfo.Arguments = "some string code here";
startInfo.CreateNoWindow = true;
process.StartInfo = startInfo;
process.Start();
當我運行它會WorkingDirectory E:/
而且參數不是寫在命令提示符。
任何好友都可以建議我在cmd.exe上運行參數嗎?
什麼是你的,你嘗試作爲參數字符串。?而不是'這裏的一些字符串代碼' –
如何決定參數不寫? – Tommi
argument =「phantomjs highcharts-convert.js -infile options1.json -outfile chart1.png -scale 2.5 -width 300 -constr Chart -callback callback .js「 –