Rights click mouse to run cmd prompt

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.
 
W

Wesley Vogel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top