Batch file question

slunk

Golden Member
Feb 2, 2000
1,325
0
0
I need to go to a specific directory in DOS quite often. I created a batch file that goes to that directory, but it closes right away. How do I get it to give me a cursor at the command prompt and leave the window open? I'm using WinXP. Thanks.
 

mobly99

Senior member
Apr 27, 2001
260
0
0
The following batch file would work, it will start a command prompt, switch to the e: drive and change to the \misc directory

Dave

@echo off
cmd /k "e: & cd \misc"