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

 

posted @ 2017-09-07 20:01  VVingerfly  阅读(8789)  评论(0编辑  收藏  举报