无法从批处理文件启动程序。 Windows无法找到该文件

时间:2014-08-07 22:06:24

标签: windows batch-file cmd

所以我试图同时启动多个程序,并且我有一个带有此命令的批处理文件

Start "My Program" "E:\Path1A\Path1B\Program1.exe"
Start "My Program Also" "E:\Path1A\Path2A\Path2B\Program2.exe" options"

Windows弹出说:

Windows cannot find 'E:\Path1A\Path1B\Program1.exe' Make sure you typed the name correctly, and then try again.

Windows cannot find 'E:\Path1A\Path2A\Path2B\Program2.exe' Make sure you typed the name correctly, and then try again.

这是在Windows 8.1上运行的。我仔细检查了路径,这是正确的。这里发生了什么?

3 个答案:

答案 0 :(得分:1)

尝试以下

START "My Program" /D "E:\Path1A\Path1B\" Program1.exe
START "My Program Also" /D "E:\Path1A\Path2A\Path2B\" Program2.exe "options"

答案 1 :(得分:0)

尝试不使用start。像这样:

"E:\Path1A\Path1B\Program1.exe"
"E:\Path1A\Path2A\Path2B\Program2.exe" options

答案 2 :(得分:0)

您的文件不在该文件名的该位置。这就是特定错误消息告诉您的内容;

如果路径或文件名中有非拉丁字符,则可能是问题所在。

此外,此行中有双重不均衡的双引号:

Start "My Program Also" "E:\Path1A\Path2A\Path2B\Program2.exe" options"