How do I open a command prompt at a given directory in windows?

I am sure there are many ways!

How do I open a command prompt at a given directory in windows?

Search for: How do I open a command prompt at a given directory in windows?

Create a batch file with .cmd extension to go where you want to go

Create a shortcut to this batch file on your desktop or where ever you like

I tend to do place this file in the same directory where it is taking me to


@rem setup a name for your directory
set cur_wking_dir=C:\somedirectory-you-want-to-go

@rem use this line to open a command line and stay there
cmd /k cd %cur_wking_dir%

windows options for cmd command

Search for: windows options for cmd command

/K - Run Command and then return to the CMD prompt. This is useful for testing, to examine variables

This is an external unverified link and be careful. Seems useful and compact compared microsoft links

Other options for cmd

Aha!


See the directory in the right hand pane
High light the directory (select)
Go to "File" menu
Use the command prompt available in the menu

Locate folder
Shift + right click
Open command line menu option