How to change the default directory of the command prompt in Windows 10

When you open command prompt in any version of Windows, the default directory is either set to C:\Windows\System32 or C:\Users\<user name>.

default directory in command prompt

If you want to change the default directory of the command prompt to some other folder, here are 3 simple steps to do so.

Steps:

  1. Search for command prompt in Windows search. Right-click and open file location.
    Open file location of command prompt

  2. Right-click on the Command Prompt shortcut and open the properties. Change the ‘Start in‘ field under the Shortcut tab as shown below and click OK.
    Change the default directory in command prompt in Windows 10

    Read also: How to Disable Windows Defender Antivirus Permanently

  3. Verify by opening the command prompt again and the path is changed.
    Update default path in command prompt

That’s all it takes to change the default directory in the Windows command prompt.

Happy learning 🙂

Please follow and like us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top