Home
Random
Log in
Settings
About freem
Disclaimers
freem
Search
Editing
How to Alter Cmd.Exe Start Directory
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
To alter the default start directory of Cmd.exe in Windows, you can follow the steps below: 1. Open the Run dialog box by pressing the Windows key + R on your keyboard. 2. Type "regedit" in the Run dialog box and press Enter. This will open the Registry Editor. 3. In the Registry Editor, navigate to the following location: HKEY_CURRENT_USER\Software\Microsoft\Command Processor 4. In the Command Processor key, locate the String value named "Autorun" (if it doesn't exist, you can create it by right-clicking on the right pane and selecting New > String Value). 5. Double-click on the Autorun value to edit it. 6. In the Value data field, enter the desired default directory enclosed in quotes, for example: "C:\Users\YourUserName\Desktop". Make sure to replace "YourUserName" with your actual user name. 7. Click OK to save the changes. 8. Close the Registry Editor. Now, when you open the Command Prompt, it should automatically start in the directory you specified in the Autorun value.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)