19. November 2008 10:40
/
Vitaly Zayko
/
/
Comments (0)
If you are familiar with Win32 API then you should know function ShellExecute which performs some operations on files including opening in programs associated with this particular file type.
In .NET Framework world you can use this function through PInvoke but there is a managed mechanism to do the same:
using (System.Diagnostics.Process prc = new System.Diagnostics.Process())
{
prc.StartInfo.FileName = "c:\\test.txt";
prc.Start();
}
Enjoy!
0e46a00c-bef6-4588-b91b-0cd5a871f91b|4|5.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04