List of actions for a file extention

  • Thread starter Thread starter A.M-SG
  • Start date Start date
A

A.M-SG

Hi,



How can I list the available actions (and the command line for each action)
for a specific file extension? I am using C# and .NET 1.1



I need that for printing .PDF files (*.PDF files print action), but I would
like to have a general solution for other file extensions and actions.



A link to online resources or source code helps.



Any help would be appreciated,

Alan
 
Hi Alan,

As far as I know, the the .NET framework didn't provide an interface for us
to do this. So wew need to implement it ourselves. The file association
information is saved in the registry. Here, I find a good example for how
to change the extension association. You can download the source code and
make some changes to it.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
You're welcome.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top