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

satya - 8/6/2016, 3:58:06 PM

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?

satya - 8/6/2016, 3:59:48 PM

One way I found it to be useful

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

satya - 8/6/2016, 4:01:25 PM

Here is how that batch file looks: goto-somewhere.cmd


@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%

satya - 8/6/2016, 4:02:08 PM

windows options for cmd command

windows options for cmd command

Search for: windows options for cmd command

satya - 8/6/2016, 4:02:53 PM

/K stands for

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

satya - 8/6/2016, 4:05:09 PM

Other options for cmd

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

Other options for cmd

satya - 6/19/2017, 11:49:54 AM

Another approach

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

satya - 7/11/2018, 10:30:44 AM

On older windows


Locate folder
Shift + right click
Open command line menu option