Help with a batch file and GOTO sections
Posted on 2009-12-22
Hi guys hope you are all well and have a fantastic christmas to all of you.
Guys id love your assistance on this one.
I have a large batch file called master.cmd
Now, in the following batch file, called test1.cmd, there is a goto section as follows:
When I run master.cmd, it correctly calls test1.cmd, but when I get to the GOTO section in test1.cmd to go to section DRIVEAREA, which exists in master.cmd, i get an error, saying cannot find batch label specified.
The reason i am doing this is because master.cmd is huge, so i wanted to break it up into chunks of code, leaving the section labels in the code, and putting in GOTO sections referencing the section names that exist in master.cmd in those other files.
Guys, what am i doing wrong?
Is there a way to reference goto sections in master.cmd from other files?
Any help greatly appreciated.