|
Answer» I want to write a batch file that calls a second batch file mutiple times. Each time the second batch file is called I need to pass different parameters. For example: export --configfile conf/FOOExport.xml --DATE 20090401 --period monthly --output ..\TEST\FOO\monthly export --configfile conf/BARExport.xml --date 20090401 --period monthly --output ..\TEST\BAR\monthly export --configfile conf/BOOExport.xml --date 20090401 --period monthly --output ..\TEST\BOO\monthly
When I run this only the first line in the file GETS executed then the batch file stops. I tried using the CALL option and changed the file to this Call: export --configfile conf/FOOExport.xml --date 20090401 --period monthly --output ..\TEST\FOO\monthly Call: export --configfile conf/BARExport.xml --date 20090401 --period monthly --output ..\TEST\BAR\monthly Call: export --configfile conf/BOOExport.xml --date 20090401 --period monthly --output ..\TEST\BOO\monthly
But when I do this I get the FOLLOWING error on all of the lines: The system cannot find the batch label specified -
For each call to export in the file.
I know this has got to have a simple solution but I am a NEWBIE to doing this.
Thanks, Bobyou should not have a colon after the word "Call". You got it, thanks! I KNEW it was simple.
|