所以我试图同时启动多个程序,我有一个批处理文件与这个命令
Start "My Program" "E:Path1APath1BProgram1.exe"
Start "My Program Also" "E:Path1APath2APath2BProgram2.exe" options"
窗口弹出提示:
Windows cannot find 'E:Path1APath1BProgram1.exe' Make sure you typed the name correctly, and then try again.
Windows cannot find 'E:Path1APath2APath2BProgram2.exe' Make sure you typed the name correctly, and then try again.
这在Windows 8.1上运行。我仔细检查了路径,是正确的。这是怎么回事?
尝试如下
START "My Program" /D "E:Path1APath1B" Program1.exe
START "My Program Also" /D "E:Path1APath2APath2B" Program2.exe "options"
尝试不使用start
。像这样:
"E:Path1APath1BProgram1.exe"
"E:Path1APath2APath2BProgram2.exe" options
您的文件不在该文件名的那个位置。这就是错误信息告诉你的;
如果路径或文件名中有非拉丁字符,那么它们可能是问题。
另外,这一行有不平衡的双引号:
Start "My Program Also" "E:Path1APath2APath2BProgram2.exe" options"