The script package stops after the first call to another batch of script

I am trying to execute a script package that currently looks like this:

D: cd D:My Documents\FtpSolution\Test getftp.bat call delimconvert.exe call convert-to-xls.bat 

However, this stops after running getftp.bat.

What am I doing wrong? It is important that these commands are executed sequentially.

+8
batch-file
source share
2 answers

use the start command to start it in a new window.

start /wait getftp.bat

+2
source share

Use 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. 

If you call other batch files without call , then control is transferred to them, but it does not return (which is something that changes call ).

+26
source share

All Articles