Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Change Command Prompt Default Directory

11 Sep 2013   #11

Windows 7 Ultimate x64

JFI: Using this method just to set the initial path when opening a command line window can lead to problems: a colleague of me had strange errors compiling a VisualStudio project which uses a PostBuild-step processing to copy some files using relative paths, and it was very hard to find out this Autorun entry changed the directory before the PostBuild commands were executed, so the relative paths pointed to wrong locations.

My System SpecsSystem Spec
11 Sep 2013   #12

W7 Pro SP1 64bit

Welcome to the Seven Forums, rompl.

Good info - nice first post!
My System SpecsSystem Spec
17 Dec 2014   #13

Windows 7 64 bit

I also had problems with this. Due to the default folder being changed, a bat file from certain software I installed was not working anymore. After a long investigation of what went wrong, I found out that the problem was solved when deleting the registry entry again. If I understood it correctly, mostly %d commands will cause problems if you change the default folder.

So be careful with implementing this!
My System SpecsSystem Spec


 Change Command Prompt Default Directory

Thread Tools

Similar help and support threads
Thread Forum
How do I change system attribute for all folders using command prompt?
Let me share the background quickly. I work at a school as Computer Applications Technology teacher. The students bring homework to school on their flashdrives, and though we have good antivirus software at school, the viruses on their home PC's will often do considerable damage to the data on...
Performance & Maintenance
Cannot change drive in command prompt using CD
When I try to switch to D drive it stays in C: C:\Users\Valdis>cd d: D:\ C:\Users\Valdis>cd D:\Downloads C:\Users\Valdis>cd d: D:\Downloads
General Discussion
Command Prompt Default Properties
Does anyone know how to set the command prompt default properties (options, font, layout, and colors)? I know how to set properties after I open a command prompt (as outlined in I want to change the default properties such...
General Discussion
Change Directory in Command Prompt
Anyone know how to do this in command prompt? I type "cd .." a few times to get to to C:\ Then when I type "cd e:\" I see E:\ below the command line but I'm still in C:\. Can anyone help? Edit: Nevermind, manage to get it working. Just had to type "E:" instead of using CD beforehand....
General Discussion
Change time to display OS from installation disk command prompt
Hey, how we all doing? I was stupid enough to manually delete my acronis files when I couldn't uninstall it the ordinary way. Now windows 7 gives a short BSOD after logo and computer restarts. Startup repair doesn't fix the problem, neither from my windows 7 usb or from laptop, I have...
Installation & Setup
Command Prompt to change primary monitor?
Hey, I'm working on a batch file to change a system's primary monitor before launching a game. Is there a DOS command to change the primary monitor on a system? Thanks!
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:05.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App