[HKEY_CLASSES_ROOT\Folder\shell\CmdPrompt\command]
@="c:\\winnt\\System32\\cmd.exe /k cd \"%l\""
This will add a right click menu to folders in Windows Explorer that allows
you to open a command prompt window at that location. In this case the %1
means that the cmd.exe file will be run and the currently clicked on folder
path will be passed in to the command string as an argument.
Oh, and in case you tried this on WinXP (thsi adds a real nice contect menu
to folders by the way) you have to modify the path to cmd.exe to read as
follows:
c:\\windows\\system32\\cmd.exe
Ray Cassick (Home) said:
Usually I have seen %1 to mean a command line argument of some kind. Take
this following registry command file for example:
[HKEY_CLASSES_ROOT\Folder\shell\CmdPrompt\command]
@="c:\\winnt\\System32\\cmd.exe /k cd \"%l\""
This will add a right click menu to folders in Windows Explorer that allows
you to open a command prompt window at that location. In this case the %1
means that the cmd.exe file will be run and the currently clicked on folder
path will be passed in to the command string as an argument.
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.