I Broke It: File Type - Added Command Prompt

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

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?
 
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
/xp_tweaks.htm

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm
 
I understand how to add it. Problem is it doesn't behave right in XP.
it opens a command prompt.

How do I fix this?



Kelly said:
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
/xp_tweaks.htm

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


Andy said:
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?
 
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]

I understand how to add it. Problem is it doesn't behave right in XP.
it opens a command prompt.

How do I fix this?



Kelly said:
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
/xp_tweaks.htm

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


Andy said:
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?
 
That is the fix, Andy: Go to Start/Run and type in: regsvr32 /i shell32

/xp_tweaks.htm

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


Andy said:
I understand how to add it. Problem is it doesn't behave right in XP.
it opens a command prompt.

How do I fix this?



Kelly said:
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
/xp_tweaks.htm

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


Andy said:
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
like
 
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

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 said:
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 said:
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?
 
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

This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
| From: "Andy" <[email protected]>
| References: <#[email protected]>
<[email protected]>
| 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#[email protected]>
| 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
|
| 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
| > 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
| >
| >
| > | > > 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?
| > >
| > >
| >
|
 
Her!

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

/xp_tweaks.htm

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



Steven Liu said:
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

This posting is provided ¡°as is¡± with no warranties and confers no
rights. --------------------
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#[email protected]>
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

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
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
/xp_tweaks.htm

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


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?
 
Back
Top