8
第一个电话,我试图执行一个批处理脚本,目前看起来是这样的:批处理脚本后停止向其他批处理脚本
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运行后该停了下来。
我在做什么错?这些命令都按顺序运行很重要。
使用start
命令可以在新窗口中启动它。
start /wait 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
变化)。
这是否需要“退出”才能在其他批处理脚本的末尾?目前,第一个脚本在新窗口中完成后,它就会在提示符处位置。 – zib24 2011-02-24 16:21:31
试试吧! – adarshr 2011-02-24 16:24:13