Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 批处理,在另一个命令之后运行命令?_Batch File_Cmd_Call_Batch Processing - Fatal编程技术网

Batch file 批处理,在另一个命令之后运行命令?

Batch file 批处理,在另一个命令之后运行命令?,batch-file,cmd,call,batch-processing,Batch File,Cmd,Call,Batch Processing,我是新的脚本编写者,我做了一个小程序。 正如你所看到的,我需要在Bat1.bat关闭后运行Bat2.bat。 请帮我做这个, 我需要知道我做错了什么 @echo off cls title xxx :START if %time%==xx:xx:xx.xx ( call Bat1.bat call Bat2.bat ) if NOT %time%==xx:xx:xx.xx goto START goto END :END 你的这些在哪里?(此外,很难将时间缩短到几厘米;您应该使用geq而不是=

我是新的脚本编写者,我做了一个小程序。 正如你所看到的,我需要在Bat1.bat关闭后运行Bat2.bat。 请帮我做这个, 我需要知道我做错了什么

@echo off
cls
title xxx
:START
if %time%==xx:xx:xx.xx (
call Bat1.bat
call Bat2.bat
)
if NOT %time%==xx:xx:xx.xx goto START
goto END
:END

你的这些在哪里?(此外,很难将时间缩短到几厘米;您应该使用
geq
而不是
==
)这应该可以正常工作。发生了什么意外情况?我不知道,但只要我用geq替换==并运行它,它就会在时间到达时自动关闭。此外,我还使用Bat1.bat启动另一个批处理文件和一个VBS文件(此VBS文件打开一个不可见的mp3文件),所以我需要在Bat2.bat中执行任务杀死该mp3,并且我想在关闭后立即启动Bat2.bat,在Bat1.bat中打开的批处理文件。
Bat1.bat可能有问题。导致其关闭的严重错误(语法错误)或
退出
命令。如果您自己找不到故障,请显示
bat1.bat