
%windir%\system32\cmd.exe /k "cd E:\TechSupportWhale & E:" In this case, my target directory is in E drive (not C drive where Windows is installed).

Change the Target folder of the command prompt: Read also: Metadrive – A must-have Google Drive Add-onĢ. But this does not work if the command prompt is opened as administrator. Note: This way of changing the default directory works only when you open the command prompt in normal mode. Verify by opening the command prompt again and the path is changed.Change the ‘ Start in‘ field under the Shortcut tab as shown below and click OK. Right-click on the Command Prompt shortcut and open the properties.Search for command prompt in Windows search.In the below 3 ways that I have shared, the default path of cmd will be changed no matter if you have opened cmd in administrative mode. Steps to change the default directory of command prompt:Ĭhanging the default path of cmd is very simple and some steps may not work when you open the command prompt as administrator.

If you want to change the default directory of the command prompt to some other folder, here are 3 simple steps to do so. When you open command prompt in any version of Windows, the default directory is either set to C:\Windows\System32 or C:\Users\.
Change default user folder windows 10 how to#
In this article, you will know how to change the default directory of command prompt in 3 ways.
