Skip to content
BagelTechNews

BagelTechNews

Information baked in

Primary Menu
  • Home
  • Tech Headlines
  • Social Media News
  • Software & Gaming
  • Contact Us
  • Home
  • Latest
  • 3 Easy Ways to Change the Default Directory of Command Prompt

3 Easy Ways to Change the Default Directory of Command Prompt

5 min read
40

If you find yourself with a command prompt that is permanently set to the default directory of C:, here are three easy ways to change it.

The “how to change command prompt default directory windows 10” is a tutorial that teaches users how to change the default directory of their command prompt. This can be done by one of three easy ways.

This article will show you how to modify the default directory of the command prompt in three different methods.

The default directory in any version of Windows when you start a command prompt is either C:WindowsSystem32 or C:Usersuser name>.

Here are three easy ways to change the default directory of the command prompt to a different location.

To change the default directory of the command prompt, follow these steps:

Changing cmd’s default path is straightforward, however certain steps may fail if you access the command prompt as administrator. The default path of cmd will be modified in the three methods I’ve listed below, regardless of whether you’ve launched cmd in administrator mode.

1. Modify cmd’s Start-in path:

  1. In the Windows search box, type command prompt. Open the file location by right-clicking.
  2. Open the properties by right-clicking on the Command Prompt shortcut. Under the Shortcut tab, change the ‘Start in’ box as shown below and click OK. 1632849522_797_3-Easy-Ways-to-Change-the-Default-Directory-of-Command
  3. Verify that the path has been updated by reopening the command prompt. 1632849523_371_3-Easy-Ways-to-Change-the-Default-Directory-of-Command

Note that this method of changing the default directory only works when the command prompt is opened in normal mode. When the command prompt is opened as administrator, however, this does not function.

Also see: Metadrive – A Must-Have Google Drive Add-On (Full Tutorial)

2. Modify the command prompt’s target folder:

  1. As explained in method #1, open the command prompt shortcut location.
  2. This will modify the target path to %windir% system32cmd.exe /k “cd C:”

1632849523_13_3-Easy-Ways-to-Change-the-Default-Directory-of-Command

Note:

  • Set the path below if your new path is on C drive (where Windows is installed). My target path is C: in my instance. TechSupportWhale

system32cmd.exe /k “cd C:TechSupportWhale” %windir% system32cmd.exe /k “%windir% system32cmd.exe /k “%windir% system32c

  • If the directory path you want is on a different disk, you’ll need to alter the path as shown below. My target directory is on E disk in this situation (not C drive where Windows is installed).

system32cmd.exe /k “cd E:TechSupportWhale & E:” percent windir percent system32cmd.exe /k “cd E:TechSupportWhale & E:”

When executed as administrator, this will modify the default directory path in command prompt.

3. Using the registry editor

Though altering the default command path in the registry is a straightforward step, we don’t advocate it until you’ve already completed point #2.

  • By putting regedit into the Windows search box and pressing Enter, you may access the registry editor.
  • Follow the way. ComputerSoftwareMicrosoftCommand ProcessorHKEY CURRENT USER
  • Create a new “String Value” with the name Autorun by selecting the Command Processor folder and clicking Edit New String Value.
  • Update the value data to cd /d E:TechSupportWhale by double-clicking on the newly generated Autorun.

1632849524_906_3-Easy-Ways-to-Change-the-Default-Directory-of-Command

Conclusion:

To change the default directory in the Windows command prompt, just do so. The first two methods are the most straightforward, and they should get the desired outcome. However, if there is a problem, update the register.

Take a backup of the registry before making any changes if you are unsure about the registry modifications. You may undo the modifications if there are any problems.

I hope you found the information you needed in this article. Greetings!!!

The “how to reset command prompt to default settings” is a simple process that can be done in three ways. The first way is to open the cmd.exe file and press CTRL+SHIFT+C. The second way is to type in “cmd /c dir”. Lastly, you can also use the “dir” command with no parameters.

{“@context”:”https://schema.org”,”@type”:”FAQPage”,”mainEntity”:[{“@type”:”Question”,”name”:”How do I change the default directory in command prompt?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”A: In order to change the default directory in command prompt, you can use a cd command. For example, lets say that your current working directory is C:UsersJohn Smith
You would type cd then hit enter and type C: then hit enter to go into the Windows folder. If you wanted to switch back from there, you could do a similar thing with a dir. Lets suppose your current working directory was D:program files
This time around, instead of typing out D, just leave it off and press enter without typing anything else”}},{“@type”:”Question”,”name”:”How do I change the default directory?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”A: You can change the default directory by opening up “/data/localstorage/” and changing the file called BeatSaber.cfg to match your new location.”}},{“@type”:”Question”,”name”:”How do I change the default directory in Windows 10 command prompt?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”A: In Windows 10, you can change the default directory for a command prompt window by going to the following path.
C:WindowsSystem32cmd.exe /D.”}}]}

Frequently Asked Questions

How do I change the default directory in command prompt?

A: In order to change the default directory in command prompt, you can use a cd command. For example, lets say that your current working directory is C:UsersJohn Smith You would type cd then hit enter and type C: then hit enter to go into the Windows folder. If you wanted to switch back from there, you could do a similar thing with a dir. Lets suppose your current working directory was D:program files This time around, instead of typing out D, just leave it off and press enter without typing anything else

How do I change the default directory?

A: You can change the default directory by opening up “/data/localstorage/” and changing the file called BeatSaber.cfg to match your new location.

How do I change the default directory in Windows 10 command prompt?

A: In Windows 10, you can change the default directory for a command prompt window by going to the following path. C:WindowsSystem32cmd.exe /D.

Related Tags

  • how to change command prompt directory
  • change default command prompt windows 10
  • change default directory windows terminal
  • how to set cmd as default instead of powershell
  • command prompt current directory

Continue Reading

Previous: Is Acer A Good Brand?
Next: SoundCloud Alternative 2021: 10+ Best Sites Like Soundcloud

Trending Now

Does OneDrive Slow Down Computer Performance 1

Does OneDrive Slow Down Computer Performance

January 28, 2023
Different Types of Online Casino Bonuses 2

Different Types of Online Casino Bonuses

January 24, 2023
How SkyHive’s Workforce Analytics Platform Can Help Businesses hive 85m 2bbrienventurebeat 3

How SkyHive’s Workforce Analytics Platform Can Help Businesses

January 20, 2023
Twitter’s New Font & Tricks for Making The Most of it twitter chirpfashingbauer coopercnet 4

Twitter’s New Font & Tricks for Making The Most of it

January 20, 2023
How to Use Yik Yak Responsibly? Everything You Need to Know About! yik us iosmarcinmashable 5

How to Use Yik Yak Responsibly? Everything You Need to Know About!

January 20, 2023
The Role of Government in Regulating Facial Recognition Technology clearview aclu usharwell washingtonpost 6

The Role of Government in Regulating Facial Recognition Technology

January 20, 2023

Related Stories

Different Types of Online Casino Bonuses
4 min read

Different Types of Online Casino Bonuses

17
How SkyHive’s Workforce Analytics Platform Can Help Businesses hive 85m 2bbrienventurebeat
10 min read

How SkyHive’s Workforce Analytics Platform Can Help Businesses

32
How ELSA Can Help you Become a Better English Speaker elsa english seriesleebloomberg
12 min read

How ELSA Can Help you Become a Better English Speaker

29
What Is Peacock Application?
3 min read

What Is Peacock Application?

35
Fix chakracore.dll is missing error in a few easy steps
6 min read

Fix chakracore.dll is missing error in a few easy steps

39
Best Ad Blockers for Android Smartphones | Ad Block Browsers
8 min read

Best Ad Blockers for Android Smartphones | Ad Block Browsers

51
  • T&C
  • Privacy Policy
  • Contact Us
Copyright © All rights reserved For BagelTechNews.com