MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / OpenFileWithDefaultApp

Method OpenFileWithDefaultApp

CSharp/Examples/USINGZ/Program.cs:79–88  ·  view source on GitHub ↗
(string filename)

Source from the content-addressed store, hash-verified

77 }
78
79 public static void OpenFileWithDefaultApp(string filename)
80 {
81 string path = Path.GetFullPath(filename);
82 if (!File.Exists(path)) return;
83 Process p = new ()
84 {
85 StartInfo = new ProcessStartInfo(path) { UseShellExecute = true }
86 };
87 p.Start();
88 }
89
90 }
91}

Callers 7

DoRandomPolyMethod · 0.45
DisplayAsSvgImageMethod · 0.45
DoSimpleShapesMethod · 0.45
DisplaySolutionAsSvgMethod · 0.45
DoVariableOffsetMethod · 0.45
DisplayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected