我的问题是:我需要在运行cmd之后,调整好路径,再执行cscript.exe wmcmd.vbs -adevice 1 -vdevice 4 –output C:\My-clips\Myfile.wmv -duration 6命令。请问如何做?看了网上的好像都是
Process p = new Process();p.StartInfo.FileName = "cmd.exe ";p.StartInfo.Arguments = "/c cscript.exe wmcmd.vbs -adevice 1  –output C:\\a2.wmv -duration 6 ";p.StartInfo.UseShellExecute = false;p.StartInfo.RedirectStandardInput = true;p.StartInfo.RedirectStandardOutput = true;p.StartInfo.RedirectStandardError = true;p.StartInfo.CreateNoWindow = true;p.Start();
这样写的问题是“找不到wmcmd.vbs文件”,路径不对!