File association .data to word

Microsoft Windows xp professional (upgr...
December 21, 2009 at 08:36:05
Specs: Windows XP

I am trying to change the file type association for .data files to open with MS Word.

I've got it so it will open the files with word however the files are blank and the icon for word isn't correct (its a file icon with a little word W in the center).

The registry changes I have made are below







@="\"C:\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE\""







@="\"C:\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE\""

See More: File association .data to word

Report •

December 21, 2009 at 22:04:10
Try using explorer to do it. You may be missing something by
using purely registry stuff.


FileTypes tab

Click New, enter extension

Click on the new extension, click Change

Specify the program which opens that file.

Report •

December 22, 2009 at 01:41:37
The reason I was trying to do it through a registry change was because I need to do it on 1000 or so pc's so obviously a manual process would be too much effort.

Any ideas?

Report •

December 22, 2009 at 03:57:00
I've even tried using the assoc and ftype commands and its the same thing. I noticed when I open word and goto open file it works fine but when I right click and choose open with it doesn't display anything in the file.

C:\>assoc .data=datafile

C:\>ftype datafile
datafile="C:\Program Files\Microsoft Office\Office\WINWORD.EXE" /n

Please help!

Report •

Related Solutions

December 22, 2009 at 04:26:54
Cup - I have even tried to manually do the file association using the method you sugguested and it still doesn't work. MS word opens but not the file.

Report •

December 22, 2009 at 08:56:38
You are not actually opening the file with a command line like
that. You are just running Word, with a new blank document.

Try actually telling Word to open the file:

@="\"C:\\Program Files\\Microsoft Office\\Office\\WINWORD.EXE\" %1"

By the way, you shouldn't need to do both HKEY_CLASSES_ROOT and LOCAL_MACHINE. One or the other will do. (If you just assign HKEY_CLASSES_ROOT, you'll find it's a shortcut to the other one.

Report •

December 22, 2009 at 12:47:49
You can export a specific branch of the registry, to a plain textfile. So, if you take out only the thing you want to add on other computers, you can get that file imported into that PC.

I did that once, maybe w98, just like this:

regedit %windir%\name.reg

I remember it creating a GUI message, but I think that was for confirmation, not a question. So, if you get it, it means it's done. I say this because your script may halt if you don't use START, example:

start regedit name.reg

This will not block further commands in the batchfile, if you forget "start", it may do.

Report •

December 23, 2009 at 02:12:07
Thanks.. the "%1" was the magic switch.


Report •

Ask Question