Home All Groups Group Topic Archive Search About

Activate a command program by its extension

Author
27 Jun 2005 3:32 PM
romy
vb.net

How Do I Activate the windows associated program by its extension ?

for example: if  filename.txt - notepad  filename.xls - excel.

Author
27 Jun 2005 2:41 PM
Carlos J. Quintero [.NET MVP]
Hi Romy,

Just call Process.Start(filename.ext)

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

Show quoteHide quote
"romy" <royal***@Powerup1.com> escribió en el mensaje
news:OjoIZUyeFHA.3048@TK2MSFTNGP12.phx.gbl...
> vb.net
>
> How Do I Activate the windows associated program by its extension ?
>
> for example: if  filename.txt - notepad  filename.xls - excel.
>