Windows 批量 "Can't Find the File Path"

Windows BATCH "Can't Find the File Path"

所以我想创建一个小的批处理文件,它运行命令行对话并在我的计算机启动时启动各种程序。更多的是为了乐趣而不是实际用途。我的问题是 windows 似乎无法找到某些文件,尽管我在命令提示符本身中打开了文件路径并复制了文件路径。它只是给了我一个 "The system cannot find the file specified error."

这里是批处理文件的相关代码,现在经过编辑以提高可读性(抱歉):

//Works
start "" "C:\Program Files\Rainmeter\Rainmeter.exe"

//Also works
"G:\Steam\Steam.exe"

//Everything below this fails
"C:\Program Files(x86)\Google\Chrome\Application\chrome.exe"
"C:\Program Files(x86)\Razer\Synapse\RzSynapse.exe"
"C:\Program Files(x86)\eclipse\eclipse.exe"
"G:\Steam\steamapps\common\AdVentureCapitalist\adventure-capitalist.exe"

前两个文件 rainmeter 和 steam 可以正常打开,但之后的一切都失败了。我试过同时使用 "Filepath" 和 start "" "Filepath",但似乎都不起作用。尽管两者都在上面的代码中工作。

而且,为了澄清,我对文件路径进行了双重和三次检查以确保我没有搞错,但它就是不起作用。

感谢您提供的任何帮助。

如果能提供哪些打不开就更好了。

"C:\Program Files(x86)\Google\Chrome\Application\chrome.exe"

就像您在 post 评论中提到的那样,Program Files 和 (x86)

之间应该有一个 space
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

随意使用环境变量。

%programfiles% ==> C:\Program Files
%programfiles(x86)% ==> C:\Program Files (x86)
"%programfiles(x86)%\Google\Chrome\Application\chrome.exe"