Windows – How to open a “custom” command prompt in Windows

batchcommand lineusb-flash-drivewindows

I have a flash drive with subversion, python, php and notepad++ on it along with several of my ongoing projects. I do this to be able to resume work on any PC with an internet connection. Currently I have a .bat file that sets up the necessary paths as well as setting the current directory to my projects folder. I run this .bat file by opening a commend prompt and drag&dropping it in.

Here is what I'd prefer: Opening the .bat file would open the configured command prompt and stay open.

Alternatively my flash drive could contain a shortcut to c:/Windows/System32/cmd.exe with the bat file as an argument (if that is possible)

Any way this could be done would be helpful and timesaving

Best Answer

End the .bat file with:

cmd

or

%COMSPEC%
Related Question