Associate file types of logon

May 26, 2010 at 03:39:15
Specs: Windows XP
I need to associate SWF files to IE for 000's of computers. I'm thinking of a dos batch file/registry change which can be executed at logon. Can file association be done in batch file? Or is it a registry setting? Thanks.

Edit: I tried this: assoc .swf=ShockwaveFlash.ShockwaveFlash
however while DOS replies that it has created the association, double-clicking the file in Windows doesn't open it.

See More: Associate file types of logon

Report •

May 26, 2010 at 04:14:00
What does the command

FTYPE ShockwaveFlash.ShockwaveFlash

give you?

Report •

May 26, 2010 at 04:22:26
On a laptop which has SWF correctly opening in IE, it does not return anything for that command. I ran FTYPE on its own and there is no mention of shockwave,

Report •

May 26, 2010 at 05:46:15
I see. The problem is that with Explorer, when you right-click on a file, and choose "Open with..." it allows you to choose which program to use for files of that type. Unfortunately, it saves that information in its own registry settings, instead of creating a new file association. So I guess this is what happened on that laptop.

I don't know why Microsoft chose to use two different ways of associating file types. It complicates things unnecessarily. But then I'm not surprised, as Microsoft has a track record of complicating things.

What you want to do is create a proper file association. Here is what I've got:

C:\>ASSOC .swf

C:\>FTYPE ShockwaveFlash.ShockwaveFlash
ShockwaveFlash.ShockwaveFlash="C:\bin\FlashPlayer.exe" %1

As you can see, I've downloaded the standalone executable version of the Flash Player, so .swf files open in their own Flash Player window. I guess if you want to open them in IE, replace the above with the pathname to IE (IExplore.exe somewhere under Program Files).

Report •

Related Solutions

Ask Question