Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I Broke It: File Type - Added Command Prompt

0 views
Skip to first unread message

Andy

unread,
Aug 2, 2003, 10:20:13 PM8/2/03
to
I did something to XP that has worked on NT and 2000 and for some reason
behaves VERY different in XP.

I like to add an explorer context menu called "command prompt" which opens a
command prompt to the current directory.

HERE"s THE PROBLEM:
===================
Double clicking on any directory does not cause explore to explore like it
normally does, it opens a new command prompt using that directory.

It's as if command prompt has become the default action. This DID NOT HAPPEN
in NT and 2000.

Is there a way to restore Explore to the default action?

STEPS TO REPRODUCE
=======================
1. Open Explorer (file not internet)
2. use the menu to navigate 'tools' - 'folder options'
3. select the 'file types' tab
4. click the 'File Types" column in the "registered file type" list. This
sorts the list by name
5 scroll to "File Folder"
6. Highlight "file folder" in the "registered file types" list
7. click the 'advanced' button. This will allow you to edit/customize the
operations associated to the file type.
8. Click the 'New" button. This pops up the "new Action" dialog
9. enter 'command prompt" in the action textbox
10. enter 'cmd.exe %1' in the "application used to perform action. CMD.exe
is used to open the command prompt and the %1 instructs the shell to provide
the current selected directory so that the command prompts opens in the
currently selected directory.
11. Click ok to add the action
12. Click ok to stop editing the actions associated to the file type
13. click ok to close the options dialog

Now when you click on a folder you can right click and see the context menu
"command prompt"


HERE"s THE PROBLEM:
====================
Double clicking on any directory does not cause explore to explore like it
normally does, it opens a new command prompt using that directory.

It's as if command prompt has become the default action. This DID NOT HAPPEN
in NT and 2000.

Is there a way to restore Explore to the default action?


Kelly

unread,
Aug 2, 2003, 10:37:26 PM8/2/03
to
Hi Andy,

Easy to fix. Go to Start/Run and type in: regsvr32 /i shell32

For adding the command prompt: Manual

Windows Registry Editor Version 5.00

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

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

Automated:

Add Command Prompt to the Right Click (Line 26)
http://www.kellys-korner-xp.com/xp_tweaks.htm
--
All the Best,
Kelly

MS-MVP Win98/XP
[AE-Windows® XP]

Troubleshooting Windows XP
http://www.kellys-korner-xp.com
http://www.kellys-korner-xp.com/xp_abc.htm
http://www.kellys-korner-xp.com/xp_tweaks.htm

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm


"Andy" <an...@eunson.com> wrote in message
news:%23kCL$WWWDH...@TK2MSFTNGP12.phx.gbl...

Andy

unread,
Aug 2, 2003, 11:22:27 PM8/2/03
to
I understand how to add it. Problem is it doesn't behave right in XP.

>>>> Double Clicking a folder should open that folder in explorer. Instead
it opens a command prompt.

How do I fix this?

"Kelly" <ke...@mvps.org> wrote in message
news:eJxqvgWW...@TK2MSFTNGP11.phx.gbl...

Sharon F

unread,
Aug 3, 2003, 12:48:19 AM8/3/03
to
Doug Knox has a fix for this at his website:
Search/Command Prompt Opens When Double Clicking a Folder
http://www.dougknox.com/xp/scripts_desc/xp_folder_open.htm

Sharon F
MS MVP
[Windows XP - Shell/User]

Kelly

unread,
Aug 3, 2003, 2:12:00 AM8/3/03
to
That is the fix, Andy: Go to Start/Run and type in: regsvr32 /i shell32

--
All the Best,
Kelly

MS-MVP Win98/XP
[AE-Windows® XP]

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm


"Andy" <an...@eunson.com> wrote in message

news:%23WM3w5W...@TK2MSFTNGP12.phx.gbl...

Andy

unread,
Aug 4, 2003, 9:19:50 PM8/4/03
to
I'm not trying to add the command prompt. I already did that
 
I'm trying to fix the problem described in my original post
 
>>HERE"s THE PROBLEM:
>>===================
>>Double clicking on any directory does not cause explore to explore like it
>>normally does
, it opens a new command prompt using that directory.
 
I think the problem is that the default action has been mapped to command prompt which is not good.
 
How do I restore Explore to the default action?
 
Thank you

 

Kelly

unread,
Aug 5, 2003, 2:57:45 AM8/5/03
to
Andy,

This is my third same reply. Go to Start/Run and type in: regsvr32 /i
shell32. If that doesn't correct the issue, and it should, make this manual
edit: Start/Run/Regedit

HKEY_CLASSES_ROOT\Directory\shell. Change the default value to the word
none.

Search or CMD Opens When Double Clicking a Folder or Drive (Line 18)
http://www.kellys-korner-xp.com/xp_tweaks.htm

--
All the Best,
Kelly

MS-MVP Win98/XP
[AE-Windows® XP]

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm


"Andy" <an...@eunson.com> wrote in message

news:OpoNk%23uWDH...@tk2msftngp13.phx.gbl...

Steven Liu [MSFT]

unread,
Aug 5, 2003, 3:47:43 PM8/5/03
to
Hi Andy,

Yes, I think Kelly's suggestion is right. Would you please try his/her
suggestion?

If it does not work, I will continue to help you to solve the issue.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu

Microsoft Online Partner Support

MCSE 2000

Get Secure! – www.microsoft.com/security

This posting is provided “as is” with no warranties and confers no rights.
--------------------
| From: "Andy" <an...@eunson.com>
| References: <#kCL$WWWDH...@TK2MSFTNGP12.phx.gbl>
<eJxqvgWW...@TK2MSFTNGP11.phx.gbl>
| Subject: Re: I Broke It: File Type - Added Command Prompt
| Date: Mon, 4 Aug 2003 21:19:50 -0400
| Lines: 297
| MIME-Version: 1.0
| Content-Type: multipart/alternative;
| boundary="----=_NextPart_000_002A_01C35ACE.23EB6CA0"
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OpoNk#uWDHA...@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.windowsxp.general
| NNTP-Posting-Host: pcp04017242pcs.walngs01.pa.comcast.net 68.80.24.221
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsxp.general:643725
| X-Tomcat-NG: microsoft.public.windowsxp.general

| > [AE-Windows?XP]

Kelly

unread,
Aug 5, 2003, 11:39:24 PM8/5/03
to
Her!

DTS-MS-MVP's : http://www.dts-l.org/gallery.htm

--
All the Best,
Kelly

MS-MVP Win98/XP
[AE-Windows® XP]

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm

"Steven Liu [MSFT]" wrote:
> Hi Andy,
>
> Yes, I think Kelly's suggestion is right. Would you please try his/her
> suggestion?
>
> If it does not work, I will continue to help you to solve the issue.
>
> Thanks for using Microsoft News Group!
>
> Sincerely,
>
> Steven Liu
>
> Microsoft Online Partner Support
>
> MCSE 2000
>

> Get Secure! ¨C www.microsoft.com/security

clown.gif
0 new messages