在同一个batch file中有多个启动语句?

我写了下面的batch file

start D:\folder1\bin\run.bat start D:\folder2\bin\run.bat start D:\folder3\bin\run.bat start D:\folder4\bin\run.bat 

它执行第一次start但给我以下错误:

 windows cannot find " D:\folder2\bin" Make sure you type the name correctly, and then try again. To search for a file, click the start button,and then click search 

:我确定拼写是正确的,我把start D:\folder2\bin\run.bat放在另一个文件中,并且正确执行。

你可能有一个stream浪的性格或不匹配的报价。 有一些关于你的batch file,你没有显示。 错误信息中的“D”之前的空格是否真的存在(或者是您的问题中的拼写错误)? 如果它是真实的,那么错误显示的目录而不是文件名的事实提供了线索的问题的根源。

试试看看它是否有所作为:

 start "title" D:\folder1\bin\run.bat 

为每行添加一个这样的标题。