Created
March 17, 2020 08:07
-
-
Save imgen/e06c259ade349555b197c9283df36e0d to your computer and use it in GitHub Desktop.
Open File With Default Program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void OpenWithDefaultProgram(string path) | |
{ | |
Process fileopener = new Process(); | |
fileopener.StartInfo.FileName = "explorer"; | |
fileopener.StartInfo.Arguments = "\"" + path + "\""; | |
fileopener.Start(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment