sort by file extension

P

Patricia Shannon

I am using Windows XP Professional at work.
I want to be able to sort by file extension.
In Windows Explorer, I have .log files that show the "Type" to be "Text
Document".
So when I sort by "Type", it sorts the .log and .txt files together.

In the Folders option of Control Panel, I deleted the LOG type (I couldn't
find a way to change the file type), then added it back, w/o choosing a file
type.
So, the file type is shown as "LOG File", which is what I want.
It is set to open with Notepad.
However, in Windows Explorer, it still shows the "type" for these files to
be "Text Document", and sorts them in with .txt files.
I even did a restart of my computer.

I'm sure that sorting by "Type" used to sort by file extension.
 
A

Alan Edwards

To my knowledge, sorting has always been by Type, rather than
Extension.
If you have a reasonable knowledge of Regedit, you can change it.
Let me know your level of expertise.

FWIW, I would export 3 keys and alter "txtfile" to "logfile" and "Text
Document" to "Log File" in the .reg file and import them again.

[HKEY_CLASSES_ROOT\.LOG]
[HKEY_CLASSES_ROOT\txtfile]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG]

If you don't follow the above, please don't try it.

....Alan
 
A

Alan Edwards

Further to my last response, I have created a .reg file to do this.
It works but needs a reboot to take effect.
I will be away in about 12 hours for 4-5 days but if you need it, let
me know then or email me if in a hurry.

....Alan
 
P

Patricia Shannon

thank you. I'll try that.
Maybe the problem on my machine is that the Type is being set somewhere to
Text somewhere other than the folder options. Maybe in the registry.

Alan Edwards said:
To my knowledge, sorting has always been by Type, rather than
Extension.
If you have a reasonable knowledge of Regedit, you can change it.
Let me know your level of expertise.

FWIW, I would export 3 keys and alter "txtfile" to "logfile" and "Text
Document" to "Log File" in the .reg file and import them again.

[HKEY_CLASSES_ROOT\.LOG]
[HKEY_CLASSES_ROOT\txtfile]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG]

If you don't follow the above, please don't try it.

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.com/index.htm



I am using Windows XP Professional at work.
I want to be able to sort by file extension.
In Windows Explorer, I have .log files that show the "Type" to be "Text
Document".
So when I sort by "Type", it sorts the .log and .txt files together.

In the Folders option of Control Panel, I deleted the LOG type (I couldn't
find a way to change the file type), then added it back, w/o choosing a file
type.
So, the file type is shown as "LOG File", which is what I want.
It is set to open with Notepad.
However, in Windows Explorer, it still shows the "type" for these files to
be "Text Document", and sorts them in with .txt files.
I even did a restart of my computer.

I'm sure that sorting by "Type" used to sort by file extension.
 
G

Gerry

Patricia

You can search by extension e.g. *.txt and *.log


--



Hope this helps.

Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~


Patricia said:
thank you. I'll try that.
Maybe the problem on my machine is that the Type is being set
somewhere to Text somewhere other than the folder options. Maybe in
the registry.

Alan Edwards said:
To my knowledge, sorting has always been by Type, rather than
Extension.
If you have a reasonable knowledge of Regedit, you can change it.
Let me know your level of expertise.

FWIW, I would export 3 keys and alter "txtfile" to "logfile" and
"Text Document" to "Log File" in the .reg file and import them again.

[HKEY_CLASSES_ROOT\.LOG]
[HKEY_CLASSES_ROOT\txtfile]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG]

If you don't follow the above, please don't try it.

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.com/index.htm



I am using Windows XP Professional at work.
I want to be able to sort by file extension.
In Windows Explorer, I have .log files that show the "Type" to be
"Text Document".
So when I sort by "Type", it sorts the .log and .txt files together.

In the Folders option of Control Panel, I deleted the LOG type (I
couldn't find a way to change the file type), then added it back,
w/o choosing a file type.
So, the file type is shown as "LOG File", which is what I want.
It is set to open with Notepad.
However, in Windows Explorer, it still shows the "type" for these
files to be "Text Document", and sorts them in with .txt files.
I even did a restart of my computer.

I'm sure that sorting by "Type" used to sort by file extension.
 
P

Patricia Shannon

I have a little experience with updating the registry. I do so as seldom as
possible!
I have exported these three keys.
When you say to then import them, do you mean I should modify the exported
files, then import them, instead of doing the update in regedit?

Is my problem that
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG]
show "txtfile" under "OpenWithProgids"?

I hope you had a good trip.

Thank you,
Patricia
 
A

Alan Edwards

Hi Patricia

Yes, I meant you should edit the keys and import them. While you can
do the first and third manually in Regedit, the second is difficult as
you must create a new key.
No, you problem is not only that you have "txtfile" in that key but
..log is pointing to a key that doesn't suit what you want.
This is how I did it: (a combination of all three keys in one .reg
file)

Make up a file from the lines below. Copy into a file called fix.reg
which should be created in Notepad. Do not retype, copy in case of
errors. The 1st line in the file is the line REGEDIT4
Make sure your mail or news reader does not add any spaces to the end
of a line.
The last line must be blank.
Right-click fix.reg and select Merge.

-----copy below this line fix.reg------------
REGEDIT4

[HKEY_CLASSES_ROOT\.LOG]
@="logfile"

[HKEY_CLASSES_ROOT\.LOG\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\logfile]
@="Log File"
"FriendlyTypeName"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,\
74,65,6d,33,32,5c,6e,6f,74,65,70,61,64,2e,65,78,65,2c,2d,34,36,39,00
"EditFlags"=dword:00010000

[HKEY_CLASSES_ROOT\logfile\DefaultIcon]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\
68,65,6c,6c,33,32,2e,64,6c,6c,2c,2d,31,35,32,00

[HKEY_CLASSES_ROOT\logfile\shell]

[HKEY_CLASSES_ROOT\logfile\shell\open]

[HKEY_CLASSES_ROOT\logfile\shell\open\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,25,31,00

[HKEY_CLASSES_ROOT\logfile\shell\print]

[HKEY_CLASSES_ROOT\logfile\shell\print\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,4e,\
4f,54,45,50,41,44,2e,45,58,45,20,2f,70,20,25,31,00

[HKEY_CLASSES_ROOT\logfile\shell\printto]

[HKEY_CLASSES_ROOT\logfile\shell\printto\command]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,6e,\

6f,74,65,70,61,64,2e,65,78,65,20,2f,70,74,20,22,25,31,22,20,22,25,32,22,20,\
22,25,33,22,20,22,25,34,22,00




[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG\OpenWithList]
"a"="NOTEPAD.EXE"
"MRUList"="a"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG\OpenWithProgids]
"logfile"=hex(0):

\\Create a separate association for LOG files still using Notepad

---- end file above here

Yes, a good trip, thank you.
(Though I only went to civilization)

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.com/index.htm



I have a little experience with updating the registry. I do so as seldom as
possible!
I have exported these three keys.
When you say to then import them, do you mean I should modify the exported
files, then import them, instead of doing the update in regedit?

Is my problem that
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.LOG]
show "txtfile" under "OpenWithProgids"?

I hope you had a good trip.

Thank you,
Patricia

Patricia Shannon said:
I am using Windows XP Professional at work.
I want to be able to sort by file extension.
In Windows Explorer, I have .log files that show the "Type" to be "Text
Document".
So when I sort by "Type", it sorts the .log and .txt files together.

In the Folders option of Control Panel, I deleted the LOG type (I couldn't
find a way to change the file type), then added it back, w/o choosing a file
type.
So, the file type is shown as "LOG File", which is what I want.
It is set to open with Notepad.
However, in Windows Explorer, it still shows the "type" for these files to
be "Text Document", and sorts them in with .txt files.
I even did a restart of my computer.

I'm sure that sorting by "Type" used to sort by file extension.
 

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