Home » Questions » Computers [ Ask a new question ]

Change to default start folder for Windows command prompt

Change to default start folder for Windows command prompt

My new Windows XP work computer's command prompt automatically brings up "H:\>" when I open it. Is there a way for me to change that safely? Specifically, to "C:\foo\bar\Something Else"? I found the method of changing the Autorun value through Google, but it came with a warning that it "might affect the functionality of batch scripts."

Asked by: Guest | Views: 324
Total answers/comments: 2
Guest [Entry]

"The command prompt automatically starts in the Home Directory specified in your user profile.

A ""workaround"" to avoid messing with scripts and such is to create a new shortcut to cmd.exe.

Create a new shortcut to %systemroot%\system32\cmd.exe
Once the shortcut is created, right-click and select Properties
In the Shortcut tab, set the ""Start in"" field to the path you want to start in, ie, C:\foo\bar\Something Else
Click OK and try your new shortcut!"
Guest [Entry]

You can create a desktop shortcut with: cmd /k cd "Initial folder path" and use it to open command prompt in that specific folders.