Aprire un file col programma predefinito

Ecco un piccolo tip per aprire un file in c#, in modo del tutto analogo alla cara vecchia ShellExecute

System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = path; proc.StartInfo.UseShellExecute = true; proc.Start();

Non so se sia l'unico modo; sicuramente è un modo semplice ed efficace

 

Matteo

 

Technorati Tag:

Print | posted @ venerdì 13 febbraio 2009 18:43

Comments on this entry:

Gravatar # re: Aprire un file col programma predefinito
by Riccardo Zanardini at 13/02/2009 19:08

Process.Start(path);
:-)
Gravatar # re: Aprire un file col programma predefinito
by Foffo at 13/02/2009 20:03

Ma dov'eri quando ti cercavo... :(

Scherzi a parte, è proprio vero ed sicuramente migliore (una riga contro quattro). Grazie mille!!

Matteo
Gravatar # re: Aprire un file col programma predefinito
by taoruankeji at 19/08/2010 09:24

PDF to TIFF Converter is a professional PDF to images program which let you convert PDF to TIFF and lots of image formats with high quality, such as JPEG, PNG, GIF, BMP, PCX, TGA. As to convert PDF to TIFF, you can freely set output encoder, including lossless, RLE, FAX G3, etc. this PDF to TIFF Converter, you alos can choose colorful, grey and black/white as output color. Reset resolution is applicable as well.
PDF to XLS Converter
PDF to EPUB Converter
Convert PDF to GIF
Gravatar # re: Aprire un file col programma predefinito
by Networking solutions at 02/05/2011 16:55

There are may person searching about that now they will find enough resources by your post,
Comments have been closed on this topic.