我在尝试使用Process.Start
运行所有内容时,遇到了从另一个批处理文件中调用批处理文件的问题。基本上,我从我的C#程序中调用批处理文件的执行,如下所示:
call include.bat
//execute the rest of the batch file here
include.bat文件设置路径,可以被许多其他批处理文件使用。当我运行Process.Start
时,有时候它可以正常工作,有时候会出现ERROR: cannot find include.bat
错误。首先,你知道为什么会发生这种情况吗?你有没有任何关于如何从批处理文件中修复这个问题的想法?