PC Review


Reply
Thread Tools Rate Thread

Where are .dat filetypes defined?

 
 
charles
Guest
Posts: n/a
 
      12th Jun 2007
Right clicking on a .dat file show an edit command on the context menu
which doesn't work on this w2k machine. I tried to find where that
filetype action was defined but found nothing in CLASSES_ROOT. The
only reference is in
USERS\xxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dat
which only seems to hold the Openwith info.

Can anyone explain how .dat files are managed and where I can find the
edit definition and fix it?

Thanks.

 
Reply With Quote
 
 
 
 
John John
Guest
Posts: n/a
 
      12th Jun 2007
Why are you asking about this? There are different types of .dat files,
antivirus software for example might use .dat files, Internet Explorer
uses .dat files, and so on. These files are not meant to be edited
manually, if a program uses.dat files it will normally automatically use
them or modify them when needed without user intervention.

In the context of this newsgroup the only .dat file that would be of
interest would be the Ntuser.dat files in the user profile folders.
Those are registry files, when a user logs on to Windows the
HKEY_CURRENT_USER registry key is created from the users ntuser.dat
file. That file is only meant to be edited with the registry editor or
when the user changes his user settings or does changes to his Windows
installation, then the changes are automatically done by Windows or by
third party tools and software installers.

John

charles wrote:

> Right clicking on a .dat file show an edit command on the context menu
> which doesn't work on this w2k machine. I tried to find where that
> filetype action was defined but found nothing in CLASSES_ROOT. The
> only reference is in
> USERS\xxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dat
> which only seems to hold the Openwith info.
>
> Can anyone explain how .dat files are managed and where I can find the
> edit definition and fix it?
>
> Thanks.
>


 
Reply With Quote
 
charles
Guest
Posts: n/a
 
      12th Jun 2007
On Tue, 12 Jun 2007 10:19:59 -0300, John John <(E-Mail Removed)>
wrote:

>Why are you asking about this? There are different types of .dat files,
>antivirus software for example might use .dat files, Internet Explorer
>uses .dat files, and so on. These files are not meant to be edited
>manually, if a program uses.dat files it will normally automatically use
>them or modify them when needed without user intervention.
>
>In the context of this newsgroup the only .dat file that would be of
>interest would be the Ntuser.dat files in the user profile folders.
>Those are registry files, when a user logs on to Windows the
>HKEY_CURRENT_USER registry key is created from the users ntuser.dat
>file. That file is only meant to be edited with the registry editor or
>when the user changes his user settings or does changes to his Windows
>installation, then the changes are automatically done by Windows or by
>third party tools and software installers.
>
>John
>
>charles wrote:
>
>> Right clicking on a .dat file show an edit command on the context menu
>> which doesn't work on this w2k machine. I tried to find where that
>> filetype action was defined but found nothing in CLASSES_ROOT. The
>> only reference is in
>> USERS\xxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dat
>> which only seems to hold the Openwith info.
>>
>> Can anyone explain how .dat files are managed and where I can find the
>> edit definition and fix it?
>>
>> Thanks.
>>


I'm asking about this because 1) There is a context menu entry for
..dat files that I can't find in the place in the registry where I
expect to find that kind of thing. 2) The entry in question, "edit",
does something unexpected when chosen and I want to find out why it is
doing that.

In more detail, choosing the "edit" menu item on a .dat file comes up
with an error box: "Cannot find the file 'filename.dat' (or one of its
components). Make sure the path and filename are correct and that all
required libraries are available." then does the right thing which is
to open the file using the program defined in the FileExts key ref'd
above. Where is this "edit" item defined and why is it throwing an
error?

In the context of this newsgroup, I am not asking about any specific
file, I am asking about how and where in the registry data is
maintained that controls the behavior of a set of files of this
particular type.


 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      12th Jun 2007
Did you right click on it and look in its properties? Look at:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.DAT

John

charles wrote:

> On Tue, 12 Jun 2007 10:19:59 -0300, John John <(E-Mail Removed)>
> wrote:
>
>
>>Why are you asking about this? There are different types of .dat files,
>>antivirus software for example might use .dat files, Internet Explorer
>>uses .dat files, and so on. These files are not meant to be edited
>>manually, if a program uses.dat files it will normally automatically use
>>them or modify them when needed without user intervention.
>>
>>In the context of this newsgroup the only .dat file that would be of
>>interest would be the Ntuser.dat files in the user profile folders.
>>Those are registry files, when a user logs on to Windows the
>>HKEY_CURRENT_USER registry key is created from the users ntuser.dat
>>file. That file is only meant to be edited with the registry editor or
>>when the user changes his user settings or does changes to his Windows
>>installation, then the changes are automatically done by Windows or by
>>third party tools and software installers.
>>
>>John
>>
>>charles wrote:
>>
>>
>>>Right clicking on a .dat file show an edit command on the context menu
>>>which doesn't work on this w2k machine. I tried to find where that
>>>filetype action was defined but found nothing in CLASSES_ROOT. The
>>>only reference is in
>>>USERS\xxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dat
>>>which only seems to hold the Openwith info.
>>>
>>>Can anyone explain how .dat files are managed and where I can find the
>>>edit definition and fix it?
>>>
>>>Thanks.
>>>

>
>
> I'm asking about this because 1) There is a context menu entry for
> .dat files that I can't find in the place in the registry where I
> expect to find that kind of thing. 2) The entry in question, "edit",
> does something unexpected when chosen and I want to find out why it is
> doing that.
>
> In more detail, choosing the "edit" menu item on a .dat file comes up
> with an error box: "Cannot find the file 'filename.dat' (or one of its
> components). Make sure the path and filename are correct and that all
> required libraries are available." then does the right thing which is
> to open the file using the program defined in the FileExts key ref'd
> above. Where is this "edit" item defined and why is it throwing an
> error?
>
> In the context of this newsgroup, I am not asking about any specific
> file, I am asking about how and where in the registry data is
> maintained that controls the behavior of a set of files of this
> particular type.
>
>

 
Reply With Quote
 
charles
Guest
Posts: n/a
 
      13th Jun 2007
Yes, under that key there was a value named Application with the
contents being the name of the application I generally use to open
..dat files with. Earlier today I tried changing the data to another
application I would also use, a text/hex editor, to see what would
happen.

What happened was that the "edit" menu item disappeared off the
context menu for .dat files and the file opened correctly with the
specified application. I then changed the registry data back to the
original program and the "edit" item reappeared. I changed it to
another editor and an "Edit" menu item appeared but this time worked
correctly without an alert notification.

So this seems pretty bizarre to me but apparently a side effect of the
Application assigned to the type without any registry changes
corresponding to a .dat filetype that I would have expected. And all
works correctly but I don't know what changed to create/delete the
"edit" menu item.

Thank you for replying.


On Tue, 12 Jun 2007 12:42:56 -0300, John John <(E-Mail Removed)>
wrote:

>Did you right click on it and look in its properties? Look at:
>
>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.DAT
>
>John
>
>charles wrote:
>
>> On Tue, 12 Jun 2007 10:19:59 -0300, John John <(E-Mail Removed)>
>> wrote:
>>
>>
>>>Why are you asking about this? There are different types of .dat files,
>>>antivirus software for example might use .dat files, Internet Explorer
>>>uses .dat files, and so on. These files are not meant to be edited
>>>manually, if a program uses.dat files it will normally automatically use
>>>them or modify them when needed without user intervention.
>>>
>>>In the context of this newsgroup the only .dat file that would be of
>>>interest would be the Ntuser.dat files in the user profile folders.
>>>Those are registry files, when a user logs on to Windows the
>>>HKEY_CURRENT_USER registry key is created from the users ntuser.dat
>>>file. That file is only meant to be edited with the registry editor or
>>>when the user changes his user settings or does changes to his Windows
>>>installation, then the changes are automatically done by Windows or by
>>>third party tools and software installers.
>>>
>>>John
>>>
>>>charles wrote:
>>>
>>>
>>>>Right clicking on a .dat file show an edit command on the context menu
>>>>which doesn't work on this w2k machine. I tried to find where that
>>>>filetype action was defined but found nothing in CLASSES_ROOT. The
>>>>only reference is in
>>>>USERS\xxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dat
>>>>which only seems to hold the Openwith info.
>>>>
>>>>Can anyone explain how .dat files are managed and where I can find the
>>>>edit definition and fix it?
>>>>
>>>>Thanks.
>>>>

>>
>>
>> I'm asking about this because 1) There is a context menu entry for
>> .dat files that I can't find in the place in the registry where I
>> expect to find that kind of thing. 2) The entry in question, "edit",
>> does something unexpected when chosen and I want to find out why it is
>> doing that.
>>
>> In more detail, choosing the "edit" menu item on a .dat file comes up
>> with an error box: "Cannot find the file 'filename.dat' (or one of its
>> components). Make sure the path and filename are correct and that all
>> required libraries are available." then does the right thing which is
>> to open the file using the program defined in the FileExts key ref'd
>> above. Where is this "edit" item defined and why is it throwing an
>> error?
>>
>> In the context of this newsgroup, I am not asking about any specific
>> file, I am asking about how and where in the registry data is
>> maintained that controls the behavior of a set of files of this
>> particular type.
>>
>>


 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      13th Jun 2007
Maybe this helps.

http://www.microsoft.com/technet/scr.../fldopts2.mspx

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"charles" wrote:
> Yes, under that key there was a value named Application with the
> contents being the name of the application I generally use to open
> .dat files with. Earlier today I tried changing the data to another
> application I would also use, a text/hex editor, to see what would
> happen.
>
> What happened was that the "edit" menu item disappeared off the
> context menu for .dat files and the file opened correctly with the
> specified application. I then changed the registry data back to the
> original program and the "edit" item reappeared. I changed it to
> another editor and an "Edit" menu item appeared but this time worked
> correctly without an alert notification.
>
> So this seems pretty bizarre to me but apparently a side effect of the
> Application assigned to the type without any registry changes
> corresponding to a .dat filetype that I would have expected. And all
> works correctly but I don't know what changed to create/delete the
> "edit" menu item.
>
> Thank you for replying.


 
Reply With Quote
 
charles
Guest
Posts: n/a
 
      13th Jun 2007
Yes, thanks. I had forgotten the FileExts key vs CLASSES_ROOT. Still
surprised that there is not a root .dat entry.

And I don't know how the "Edit" menu entry is being created though it
seems to be automatically when assigned some text editors I use
(PSPad, Epsilon).

Thanks again for the info.


On Tue, 12 Jun 2007 21:03:19 -0600, "Dave Patrick"
<(E-Mail Removed)> wrote:

>Maybe this helps.
>
>http://www.microsoft.com/technet/scr.../fldopts2.mspx


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find .oma filetypes headcoat Windows Vista File Management 3 3rd Jul 2008 11:31 AM
EML filetypes LadyDungeness@Fish.Net Microsoft Outlook Discussion 3 2nd Aug 2007 10:29 PM
Filetypes- add new ones Legendsinc Windows Vista General Discussion 1 4th Jun 2007 02:19 PM
Re: Can't search in certain filetypes Torgeir Bakken (MVP) Windows XP General 0 4th Mar 2004 12:47 AM
Filetypes can't be edited Robert Windows XP Basics 1 4th Oct 2003 11:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:48 PM.