phper
asked on
Windows bat file that leaves the cmd window open and allows for more action
I have a bat file that is:
Any idea?
cd C:\Users\Bob\addon-sdk
bin\activate
The point of the file is to open a cmd, go to a directory and start a service. What I want is to keep the cmd window open so I can start working but the cmd window always closes. I have tried pause and cmd /k at the end of the file but the cmd window still closes.Any idea?
At the end of your bat file, Just call CMD.exe itself.
ASKER
Did not work. Moreover, I want the current CMD window open not a new one. The idea is that the bat file will automatically do the first two steps of a process then I can take over and continue manually.
the solution would be to instead of calling the .bat file directly (like this)
"C:\My programs\test.bat"
would be to call it with the cmd.exe /K switch
C:\WINNT\system32\CMD.EXE /K "C:\My programs\test.bat"
hope this helps
How are you invoking this BAT file?
~bp
~bp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.