The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Mr Earl on August 06, 2005, 04:33:47 PM

Title: Set File Association
Post by: Mr Earl on August 06, 2005, 04:33:47 PM
The command "FindExecutable" will GET a File Association.

Is there a command, or way, to SET a File Association
without directly modifying the Registry?

I prefer to use a proven command, when available.
Title: Re: Set File Association
Post by: hitchhikr on August 06, 2005, 07:30:36 PM
I don't think so.
Title: Re: Set File Association
Post by: Tedd on August 08, 2005, 10:44:55 AM
The windows gods say..

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fileassoc.asp
Title: Re: Set File Association
Post by: Mr Earl on August 08, 2005, 11:45:08 AM
Thanks guys & gods.  I'll break out the Registry Guide.
Title: Re: Set File Association
Post by: PBrennick on August 08, 2005, 03:15:39 PM
Mr. Earl,
Once you have read the guide, if you need help in sending the correct instructions to write to the registry in assembly, just ask in the Campus and someone will help you.

Paul


Title: Re: Set File Association
Post by: Mark Jones on August 09, 2005, 05:53:22 AM
That's odd, I must be confused. The guide and registry seem somehow correct and incorrect at the same time. Looking through some of my HKCR keys, very few have any subkeys and the "default application" appears to be simply a default REGsz value. I seem to recall there needing to be a subkey and different keys for "run", "open", etc. But I must be thinking of some other part of the registry.