例如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

 

相关文章: