2

How can I create an icon\shortcut to a script that opens cmd.exe command prompt at a certain location on a certain drive under Win7?

Jonathan
  • 3,839

3 Answers3

10

i don't know in windows 7, but in windows xp and previous:

  • create a shortcut to c:\windows\system32\cmd.exe
  • right-click -> properties
  • in the "start in" write the desired target folder (e.g. f:\aviv\geffen)

click ok, and there you go.

6

Create a shortcut to cmd.exe, then go to its properties and edit the Target:

C:\Windows\System32\cmd.exe /K "D: & cd eclipse"

This would first change the current directory to D: and then cd into eclipse folder

Jonathan
  • 3,839
5

Within Windows 7 you can just hold down the Shift key when right clicking a location and the Open Command Window Here option will then appear in the right-click menu. The starting location (path) is your right-click destination!

For previous versions of Windows, I came across this plug-in which inserts a 'Open Command Prompt' option into the right click menu - it will open it in the current folder/multiple command prompts in multiple locations with just a few clicks.

HaydnWVN
  • 3,276
  • 3
  • 27
  • 51