|
@@ -158,7 +158,7 @@ public class ExcelEditor
|
|
|
ProcessStartInfo psi = new ProcessStartInfo
|
|
ProcessStartInfo psi = new ProcessStartInfo
|
|
|
{
|
|
{
|
|
|
FileName = "cmd.exe", // 通过cmd调用
|
|
FileName = "cmd.exe", // 通过cmd调用
|
|
|
- Arguments = $"/K \"{batPath}\"", // 传递.bat路径
|
|
|
|
|
|
|
+ Arguments = $"/C \"{batPath}\"", // 传递.bat路径
|
|
|
WorkingDirectory = System.IO.Path.GetDirectoryName(batPath),
|
|
WorkingDirectory = System.IO.Path.GetDirectoryName(batPath),
|
|
|
UseShellExecute = true,
|
|
UseShellExecute = true,
|
|
|
CreateNoWindow = false
|
|
CreateNoWindow = false
|