bat路径中有空格

例如bat文件中写

C:/Program Files (x86)/Google/Chrome/Application/chrome.exe ./html/index.html
pause
 

 会报错,'C:/Program' 不是内部或外部命令。问题出在路径中的空格,将整个路径打上双引号就行了。即

"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe" ./html/index.html
pause
原文地址:https://www.cnblogs.com/VVingerfly/p/7491583.html