"Edit File Types" Grayed Out

C

Chuck

Under "Folder Options", "File Folder", "Advanced", "Edit
File Types", I have entered an "Action" that doesn't
work, so I'd like to delete it so it doesn't keep showing
up when I right-click on a folder, but the "Remove"
button is grayed out. I understand resolving this
involves a registry change, but I can't figure it out.
Can anyone help?
 
L

Lucvdv

Under "Folder Options", "File Folder", "Advanced", "Edit
File Types", I have entered an "Action" that doesn't
work, so I'd like to delete it so it doesn't keep showing
up when I right-click on a folder, but the "Remove"
button is grayed out. I understand resolving this
involves a registry change, but I can't figure it out.
Can anyone help?

See if you can find your action as a key name under
HKEY_CLASSES_ROOT\Folder\Shell\[xxx]\Command, where [xxx] is your
action name.

Delete the [xxx] subkey with everything in it, or edit the "(Default)"
value in [xxx]\Command so it works.



The most likely reason for something not working there is forgetting
to specify the full path of the program you want to start (unless it's
in the system32 directory), or not putting quotes around it if the
path contains spaces.

Follow this formula: (Default) = "C:\long path\app.exe" "%1"
including the double quotes.
That should work with most applications. In some cases the quotes
around "%1" have to be left out.


For example you can create a key:

HKEY_CLASSES_ROOT\Folder\Shell\CMD\Command

with the default value in the Command subkey set to simply 'cmd.exe'
(no quotes, no arguments, no path: cmd.exe is located in system32, so
the system always finds it).

There will be a new menu item "CMD" in a folder context menu, which
will open a command shell with the current directory set to the folder
you right-clicked and executed it on (i.e. it's the "DOS Prompt Here"
powertoy from Win95, but with cmd.exe instead of command.com).

It behaves differently when used on a desktop icon in XP: use it on an
icon such as My Documents or My Computer or a folder placed on the
desktop, and the command prompt opens with the desktop as working
directory, *not* the icon's target.

It will behave as expected on the same icons in explorer.
 
C

Chuck

The only two folders under "shell" are "explore"
and "open", and neither of those are the one I created.
You gave me an idea though: I searched for the action
name in the registry and found it
under: "HKEY_CLASSES_ROOT\Directory\Shell\[xxx] and
HKEY_LOCAL_MACHINE\SOFTWARE\CLASSED\DIRECTORY\[xxx]. I
deleted the [xxx] folder under HCR, but when I went to
delete it under HLM, an error message popped up saying it
couldn't delete it. Then it refreshed on it's own and the
one there disappeared, so now it's gone too. I then went
to check under the "File Folders" option and it's gone
there as well, so it took care of it. Thanks!

What I was trying to do was create a command that will
allow me to print a directory's contents as a text file.
I had something similar in Windows98 but can't find the
instructions. In searching, I found and made one that
allows me to right-click on a file in Explorer and print
its contents to the printer, but not to a text file. I
seem to recall that the one I used under 98 created a
file with a .prn extention in the directory in which I
right-clicked.

The instructions for it I found for doing it that didn't
work was:

C:\command.com /c dir > dir.txt

I guess it didn't work because apparently XP has no
command.com.

A manual one that works at the dos prompt is:

C:\>dir c:\folderpath > c:\folderlist.txt

where folderpath is the name of the folder whose contents
I want to print and folderlist.txt is the name of the
created text file with the folder's contents listed in it.

I would rather have it automated so that all I have to do
is right click on the directory in explorer. Any
suggestions? I'll post a new threat on this in case
anyone else knows too.

Chuck

-----Original Message-----
See if you can find your action as a key name under
HKEY_CLASSES_ROOT\Folder\Shell\[xxx]\Command, where [xxx] is your
action name.

Delete the [xxx] subkey with everything in it, or edit the "(Default)"
value in [xxx]\Command so it works.



The most likely reason for something not working there is forgetting
to specify the full path of the program you want to start (unless it's
in the system32 directory), or not putting quotes around it if the
path contains spaces.

Follow this formula: (Default) = "C:\long path\app.exe" "%1"
including the double quotes.
That should work with most applications. In some cases the quotes
around "%1" have to be left out.


For example you can create a key:

HKEY_CLASSES_ROOT\Folder\Shell\CMD\Command

with the default value in the Command subkey set to simply 'cmd.exe'
(no quotes, no arguments, no path: cmd.exe is located in system32, so
the system always finds it).

There will be a new menu item "CMD" in a folder context menu, which
will open a command shell with the current directory set to the folder
you right-clicked and executed it on (i.e. it's the "DOS Prompt Here"
powertoy from Win95, but with cmd.exe instead of command.com).

It behaves differently when used on a desktop icon in XP: use it on an
icon such as My Documents or My Computer or a folder placed on the
desktop, and the command prompt opens with the desktop as working
directory, *not* the icon's target.

It will behave as expected on the same icons in explorer.

.
 
K

KM

Chuck,

Are you dealing with XP Embedded? If not, you may better post your message
to microsoft.public.windowsxp.embedded.
Btw, on XP Pro, "command.com /c dir > dir.txt" command will work. Also, you
can try "cmd.exe /c dir > dir.txt". Just to make sure how you run the
command - if from Start-->Run, then check you profile directory for the
result dir.txt (under "\Documents and Settings\UserAccountName") .

If you are under XPe then check if you image has the cmd.exe included.
For command.com you will need "Dos Windows on Windows Support" component.

KM
The only two folders under "shell" are "explore"
and "open", and neither of those are the one I created.
You gave me an idea though: I searched for the action
name in the registry and found it
under: "HKEY_CLASSES_ROOT\Directory\Shell\[xxx] and
HKEY_LOCAL_MACHINE\SOFTWARE\CLASSED\DIRECTORY\[xxx]. I
deleted the [xxx] folder under HCR, but when I went to
delete it under HLM, an error message popped up saying it
couldn't delete it. Then it refreshed on it's own and the
one there disappeared, so now it's gone too. I then went
to check under the "File Folders" option and it's gone
there as well, so it took care of it. Thanks!

What I was trying to do was create a command that will
allow me to print a directory's contents as a text file.
I had something similar in Windows98 but can't find the
instructions. In searching, I found and made one that
allows me to right-click on a file in Explorer and print
its contents to the printer, but not to a text file. I
seem to recall that the one I used under 98 created a
file with a .prn extention in the directory in which I
right-clicked.

The instructions for it I found for doing it that didn't
work was:

C:\command.com /c dir > dir.txt

I guess it didn't work because apparently XP has no
command.com.

A manual one that works at the dos prompt is:

C:\>dir c:\folderpath > c:\folderlist.txt

where folderpath is the name of the folder whose contents
I want to print and folderlist.txt is the name of the
created text file with the folder's contents listed in it.

I would rather have it automated so that all I have to do
is right click on the directory in explorer. Any
suggestions? I'll post a new threat on this in case
anyone else knows too.

Chuck

-----Original Message-----
See if you can find your action as a key name under
HKEY_CLASSES_ROOT\Folder\Shell\[xxx]\Command, where [xxx] is your
action name.

Delete the [xxx] subkey with everything in it, or edit the "(Default)"
value in [xxx]\Command so it works.



The most likely reason for something not working there is forgetting
to specify the full path of the program you want to start (unless it's
in the system32 directory), or not putting quotes around it if the
path contains spaces.

Follow this formula: (Default) = "C:\long path\app.exe" "%1"
including the double quotes.
That should work with most applications. In some cases the quotes
around "%1" have to be left out.


For example you can create a key:

HKEY_CLASSES_ROOT\Folder\Shell\CMD\Command

with the default value in the Command subkey set to simply 'cmd.exe'
(no quotes, no arguments, no path: cmd.exe is located in system32, so
the system always finds it).

There will be a new menu item "CMD" in a folder context menu, which
will open a command shell with the current directory set to the folder
you right-clicked and executed it on (i.e. it's the "DOS Prompt Here"
powertoy from Win95, but with cmd.exe instead of command.com).

It behaves differently when used on a desktop icon in XP: use it on an
icon such as My Documents or My Computer or a folder placed on the
desktop, and the command prompt opens with the desktop as working
directory, *not* the icon's target.

It will behave as expected on the same icons in explorer.

.
 

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