Recently I learnt the following 2 commands which can be used for querying and setting file association in Win32 platform. Quite useful when we are trying to something through batch script. We can call the commands instead of doing the registry dirty work.
ASSOC
Displays or modifies file extension associations
ASSOC [.ext[=[fileType]]]
.ext Specifies the file [...]