Rights click mouse to run cmd prompt

  • Thread starter Thread starter moonhk
  • Start date Start date
M

moonhk

How to setup rights clik the mouse in file explorer , then popup menu
to run cmd prompt . The cmd prompt default directory is current
directory.

e.g. in windows file explorer c:\temp. Then rights click the mouse,
select the cmd prompt. then run cmd , the directory change to c:\temp.
 
On Method #5 there seems to be something missing.

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\command prompt]
@="Command Prompt Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\command prompt\command]
@="cmd.exe /k pushd %L"

Cmd.exe /k pushd %L. That value will launch Cmd.exe, which is the XP command
prompt. The /k switch puts the prompt into interactive mode. That is, it
lets you issue commands from the command prompt; the command prompt isn't
being used to issue only a single command and then exit. The pushd command
stores the name of the current directory, and %L uses that name to start the
command prompt at it.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top