Q: How can I open a new command prompt with a specific folder already selected?

A: You can open a new command prompt using the "start cmd.exe" command.

You can also use the /k switch to make the new command window run a command. This command could be a directory change, shown below:

start cmd /k "cd /d d:\projects\vbscripts"

This starts a new command prompt, and moves to the projects\vbscripts folder on the D drive (if changing the drive, use the /d switch with cd).

If you want to change the start location for a command prompt shortcut, open the properties of the shortcut. Under the Shortcut tab, modify the "Start in" property of the shortcut.

TAGS: Windows 8
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish