我试图执行一个批处理脚本,它当前看起来像这样:
D:
cd D:My Documents\FtpSolution\Test
getftp.bat
call delimconvert.exe
call convert-to-xls.bat
然而,在 getftp.bat 运行后,这个命令序列就停止了。
我做错了什么?所有命令按顺序运行非常重要。
我试图执行一个批处理脚本,它当前看起来像这样:
D:
cd D:My Documents\FtpSolution\Test
getftp.bat
call delimconvert.exe
call convert-to-xls.bat
然而,在 getftp.bat 运行后,这个命令序列就停止了。
我做错了什么?所有命令按顺序运行非常重要。
使用call
:
Calls one batch program from another.
CALL [drive:][path]filename [batch-parameters]
batch-parameters Specifies any command-line information required by the
batch program.
如果你在不使用call
的情况下调用其他批处理文件,则控制权将传递给它们,但不会再返回(这就是call
所改变的内容)。
使用start
命令在新窗口中启动它。
start /wait getftp.bat