Command Prompt in A Folders 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
 
R

Ramesh [MVP]

Hi Bob,

Try:

"C:\Windows\System32\cmd.exe /k cd %1
or
"C:\Windows\System32\cmd.exe /k cd "%1" [As in Jerry's ExpertZone page:]
http://www.microsoft.com/WindowsXP/expertzone/columns/honeycutt/03june09.asp

--
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
 
B

Bob Day

OK, just to make life more complicated, somone suggested
"Open Command Window Here"
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
which works great.

But, since I have already run the .reg file described earler, how do I
remove the Command Prompt from the context menu (it duplicates the Open
Command Window Here installed by the above).

Thanks for you help and sorry about being a moving target on this.

Thanks
bob Day
 
R

Ramesh [MVP]

Goto this location in the registry:
[HKEY_CLASSES_ROOT\Directory\shell]

Delete the "Command" sub-menu

Or, use the Folder Options > FileTypes dialog and delete the entry under
"File Folders".

After you are done with it, run "regsvr32 /i shell32" at RUN box.
[Courtesy: David Candy]


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

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

~ Please reply to newsgroup ~


OK, just to make life more complicated, somone suggested
"Open Command Window Here"
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
which works great.

But, since I have already run the .reg file described earler, how do I
remove the Command Prompt from the context menu (it duplicates the Open
Command Window Here installed by the above).

Thanks for you help and sorry about being a moving target on this.

Thanks
bob Day
 
B

Bob Day

THanks!

Bob day
Ramesh said:
Goto this location in the registry:
[HKEY_CLASSES_ROOT\Directory\shell]

Delete the "Command" sub-menu

Or, use the Folder Options > FileTypes dialog and delete the entry under
"File Folders".

After you are done with it, run "regsvr32 /i shell32" at RUN box.
[Courtesy: David Candy]


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

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

~ Please reply to newsgroup ~


OK, just to make life more complicated, somone suggested
"Open Command Window Here"
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
which works great.

But, since I have already run the .reg file described earler, how do I
remove the Command Prompt from the context menu (it duplicates the Open
Command Window Here installed by the above).

Thanks for you help and sorry about being a moving target on this.

Thanks
bob Day

Ramesh said:
Hi Bob,

Try:

"C:\Windows\System32\cmd.exe /k cd %1
or
"C:\Windows\System32\cmd.exe /k cd "%1" [As in Jerry's ExpertZone page:]
http://www.microsoft.com/WindowsXP/expertzone/columns/honeycutt/03june09.asp
--
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
 
R

Ramesh [MVP]

Welcome.

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

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

10 Myths about Windows XP:
http://www.microsoft.com/WindowsXP/expertzone/columns/honeycutt/03december01
..asp


THanks!

Bob day
Ramesh said:
Goto this location in the registry:
[HKEY_CLASSES_ROOT\Directory\shell]

Delete the "Command" sub-menu

Or, use the Folder Options > FileTypes dialog and delete the entry under
"File Folders".

After you are done with it, run "regsvr32 /i shell32" at RUN box.
[Courtesy: David Candy]


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

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

~ Please reply to newsgroup ~


OK, just to make life more complicated, somone suggested
"Open Command Window Here"
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
which works great.

But, since I have already run the .reg file described earler, how do I
remove the Command Prompt from the context menu (it duplicates the Open
Command Window Here installed by the above).

Thanks for you help and sorry about being a moving target on this.

Thanks
bob Day

Ramesh said:
Hi Bob,

Try:

"C:\Windows\System32\cmd.exe /k cd %1
or
"C:\Windows\System32\cmd.exe /k cd "%1" [As in Jerry's ExpertZone page:]
http://www.microsoft.com/WindowsXP/expertzone/columns/honeycutt/03june09.asp
--
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