How can I open a cmd window in a specific location?

Haim Bender picture Haim Bender · Sep 13, 2008 · Viewed 814.8k times · Source

How can I open a cmd window in a specific location without having to navigate all the way to the directory I want?

Answer

Allain Lalonde picture Allain Lalonde · Sep 13, 2008

This might be what you want:

cmd /K "cd C:\Windows\"

Note that in order to change drive letters, you need to use cd /d. For example:

C:\Windows\System32\cmd.exe /K "cd /d H:\Python\"

(documentation)