|
Answer» Does anybody know if there is anyway to transfer control to a new command prompt from the existing one? for example I am trying to write a batch file which will open up a new command prompt and then all the things I want to do would be done on new command prompt and not the OLD one.
for eg. @ECHO OFF START C:\Windows\System32\cmd cd C:\SomeFolder pause exit
above commands OPENS a new command prompt but let's SAY if I want to change directory on that new command prompt how do I do it? in the case above it will change directory in the first command prompt. not the one that is opened by this batch fileCALL opens a new command SHELL session, but I'm not sure if you can switch about between spawned sessions, I think you can only RUN a second batch or executable in the second session and then close it and resume processing the parent batch file.
|