@ECHO OFF
:EXECUTE
"C:\Users\Lake\Desktop\New folder\Executes\spotify.bat"
:EXECUTE
"C:\Users\Lake\Desktop\New Folder\Executes\Firefox.bat"
这就是我的批处理文件中的内容。它只执行第一个,我希望它执行它们。我该怎么做?
答案 0 :(得分:2)
只需删除两个:EXECUTE
标签并使用CALL
,这样它就会在执行CALL
之后返回当前批处理文件:
@ECHO OFF
CALL "C:\Users\Lake\Desktop\New folder\Executes\spotify.bat"
CALL "C:\Users\Lake\Desktop\New Folder\Executes\Firefox.bat"
答案 1 :(得分:0)
或者如果您希望它们以异步方式执行,您可以使用START而不是CALL:
@ECHO OFF
START "C:\Users\Lake\Desktop\New folder\Executes\spotify.bat"
START "C:\Users\Lake\Desktop\New Folder\Executes\Firefox.bat"