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
rompl

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
UsernameIssues

W7 Pro SP1 64bit
 
 

Welcome to the Seven Forums, rompl.

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

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
.

Reply

 Change Command Prompt Default Directory




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt: "close: No such file or directory"
I have several batch files that I need to run from Command Prompt. For exampleecho off echo !HM | ncat 192.168.1.6 80So visually I see:C:\ncat>home.bat echo off close: No such file or directory C:\ncat>All the batch files work as desired but always return the error code. ncat.exe is in the...
Software
Command Prompt - Restore Default Personalization Settings
How to Restore Console Default Personalization Settings in Windows Avid users of the Command Prompt would know how easy it is to get carried away with the personalization settings the Command Prompt has to offer, and quickly lose track of which settings were altered. Accordingly, many users may...
Tutorials
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 https://www.sevenforums.com/tutorials/50539-command-prompt-personalize.html). 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


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 23:27.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App