Created
August 16, 2021 16:40
-
-
Save bradmartin333/a59e027740cbd89b2d0cc9d458844e9b to your computer and use it in GitHub Desktop.
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) | |
{ | |
using (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