Cmd C#命令删除:空格文件名
删除“ents.dll”,但未删除“fast race.exe”。我认为有空间。请帮帮我Cmd C#命令删除:空格文件名,cmd,delete-file,Cmd,Delete File,删除“ents.dll”,但未删除“fast race.exe”。我认为有空间。请帮帮我 System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C del ents.dll + fast race.exe";
process.StartInfo = startInfo;
process.Start();
我不认为命令行
del
命令使用加号字符来表示多个文件。尝试用空格分隔文件名,如下所示:startInfo.Arguments=“/C del ents.dll fast race.exe”
我不认为命令行del
命令使用加号字符来表示多个文件。尝试用空格分隔文件名,如下所示:startInfo.Arguments=“/C del ents.dll fast race.exe”代码>