This essay will demonstrate how to launch an application associated with special files to open a special file without having to know the specific location and name of the associated application. For example, you have to open Demo.Bmp, usually under Windows is the associated with MspAint.exe. C # .NET launch The associated application opens a special file, you need to use the .NETFramework system.diagnostics named space. Below, we will construct an initiator of any associated program, build a CS file starter.cs. Using system.id; using system.diagnostics;
Public class starter {public static void main (string [] args) {// First, establish a structure of the process startup information processStartInfo Pinfo = new processstartinfo (); pinfo.useshellexecute = true; for (int i = 0; i