How to set the default directory of the cd command in Windows cmd terminal?

Kacy picture Kacy · Dec 17, 2013 · Viewed 41.1k times · Source

The cmd command cd takes me to a directory I never spend any time in.

I would like it to take me to C:\Users\Kacy\Documents\ by default.

Unfortunately, set cd = C:\Users\Kacy\Documents\ does not work.

Is there a simple way to change this setting within the cmd terminal ?

Answer

Ben Evans picture Ben Evans · Mar 4, 2017

On Windows 10, you can also navigate to C:\Users\%YOUR_USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools, then right click command prompt and select properties.

Then in the Shortcut tab, you can change the "Start in:" field to be whatever path you desire. By default it references Environment Variables, but you can update it to be C:, D:/My Folder/Foo/Bar, etc.