Home All Groups Group Topic Archive Search About

Identify a file type and open the file

Author
22 Mar 2006 5:19 AM
Shilpa
Hi All,

I want to write C# code to identify a file type and open the file in
the associated editor.
For example, text files should be identified and opened in notepad,
html should be opened in internet explorer/netscape/mozilla.
At design time, I do not know if internet explorer/netscape is
installed on the client machine. The C# code should identify that and
open.


Please help.


Regards,
Shilpa

Author
22 Mar 2006 5:23 AM
Stephany Young
And your problem/question is?


Show quote
"Shilpa" <shilpa.nagav***@unisys.com> wrote in message
news:1143004745.329180.205760@i39g2000cwa.googlegroups.com...
> Hi All,
>
> I want to write C# code to identify a file type and open the file in
> the associated editor.
> For example, text files should be identified and opened in notepad,
> html should be opened in internet explorer/netscape/mozilla.
> At design time, I do not know if internet explorer/netscape is
> installed on the client machine. The C# code should identify that and
> open.
>
>
> Please help.
>
>
> Regards,
> Shilpa
>
Author
22 Mar 2006 5:37 AM
Shilpa
I want the C# code snippet

AddThis Social Bookmark Button