Command Prompt from Folder Context Menu

B

Bob Day

Using Windows XP Pro...

I want to add a command prompt option to a folder's context menu, some one
suggested below as a .reg file and execute it:

----------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k cd \"%1\""

---------------------------------


Works nicely, but with one draw back. In the DOS window, it shows
the path like this:
C:\CSINST~1\A0-CSA~1\OSSCBE~!>
for a directory of
C:\CS INSTALLS\A0 - CS ADDITONS\OS SCHEDULED TASKS.
Any way to correct this to make it more readable and accurate?

Also, I have had the computer lock 1 time when using this new command prompt
in the folder's context menu. Anyone have any ideas?

Thanks!
Bob Day
 
W

Will Denny

Hi

"Open Command Window Here"
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

--

Will Denny
MS-MVP Windows - Shell/User


Bob Day said:
Using Windows XP Pro...

I want to add a command prompt option to a folder's context menu, some one
suggested below as a .reg file and execute it:

----------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k cd \"%1\""

---------------------------------


Works nicely, but with one draw back. In the DOS window, it shows
the path like this:
C:\CSINST~1\A0-CSA~1\OSSCBE~!>
for a directory of
C:\CS INSTALLS\A0 - CS ADDITONS\OS SCHEDULED TASKS.
Any way to correct this to make it more readable and accurate?

Also, I have had the computer lock 1 time when using this new command prompt
in the folder's context menu. Anyone have any ideas?

Thanks!
Bob Day
 
R

Ramesh [MVP]

Change the cmd.exe /k cd \"%1\"" to full path of CMD.exe

"c:\windows\system32\cmd.exe /k cd %1"

--
Ramesh - Microsoft MVP
http://www.mvps.org/sramesh2k

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com

~ Please reply to newsgroup ~


Using Windows XP Pro...

I want to add a command prompt option to a folder's context menu, some one
suggested below as a .reg file and execute it:

----------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k cd \"%1\""

---------------------------------


Works nicely, but with one draw back. In the DOS window, it shows
the path like this:
C:\CSINST~1\A0-CSA~1\OSSCBE~!>
for a directory of
C:\CS INSTALLS\A0 - CS ADDITONS\OS SCHEDULED TASKS.
Any way to correct this to make it more readable and accurate?

Also, I have had the computer lock 1 time when using this new command prompt
in the folder's context menu. Anyone have any ideas?

Thanks!
Bob Day
 

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