我有一个批处理脚本,它以一个图片的源文件为参数并输出修改后的图片。我能把这个批处理放在服务器上,并通过WebService调用它吗?
我有一个批处理脚本,它以一个图片的源文件为参数并输出修改后的图片。我能把这个批处理放在服务器上,并通过WebService调用它吗?
Process.Start("c:\bats\test.bat")
Process p= new Process();
p.StartInfo.WorkingDirectory = "C:\temp";
p.StartInfo.FileName = "c:\bats\test.bat";
p.StartInfo.Arguments = "arguments";
p.StartInfo.CreateNoWindow = false;
p.Start();
p.WaitForExit();