Take a look at the assoc and ftype commands:
c:\test>assoc .pl .pl=Perl c:\test>ftype Perl Perl="c:\perl\bin\perl.exe" -sw "%1" %*
They can be used to both query and set the associations and are very easy to drive via backticks.
The alternative is digging around in the registry, which is a pain to do and easy to get wrong.
In reply to Re: Getting File Types data
by BrowserUk
in thread Getting File Types data
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |