phillyman2004 Posted June 20, 2005 Posted June 20, 2005 OK i am trying to pass control from one batch file to another, problem i am running into is that the first batch file seems to want to retain control after the second is run This presents a small problem for me , I have modular batch files , One for a Menu , That passes off control to 5 other batch files , depending on the selectionThe First batch file is run from my flash drive , and then when a selection is made , the corresponding batch file is copied to the C drive and run from there so i may remove my flash drive and move on to the next machine , but when i remove my flash drive the first batch file crashes and takes out the second with itAny ideasRob
tuxy0 Posted June 20, 2005 Posted June 20, 2005 Hello,if you call the second batch file by simply using its name (WITHOUT the command CALL) then the control will not return to the first batch file when the second one terminated.If you use CALL then the control will return to the first batch file when the second terminates.
phillyman2004 Posted June 20, 2005 Author Posted June 20, 2005 Hello,if you call the second batch file by simply using its name (WITHOUT the command CALL) then the control will not return to the first batch file when the second one terminated.If you use CALL then the control will return to the first batch file when the second terminates.<{POST_SNAPBACK}>I think i was using the Start command , I will try what you saidRob
suryad Posted June 20, 2005 Posted June 20, 2005 Thanks for this info. Please let me know if the command is CALL or START.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now