You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// just open an explorer window into a folderSystem.Diagnostics.Process.Start("explorer.exe",pathLinescan);// or get fancy and pre-select a file or folderSystem.Diagnostics.Process.Start("explorer.exe",$"/select, \"{pathLinescan}\"");
privatevoidLaunchBrowser(stringurl){// A cross-platform .NET-Core-safe function to launch a URL in the browserConsole.WriteLine($"Launching: {url}");try{Process.Start(url);}catch{if(System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows))Process.Start(newProcessStartInfo("cmd",$"/c start {url}"){CreateNoWindow=true});elseif(System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))Process.Start("xdg-open",url);elseif(System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX))Process.Start("open",url);elsethrow;}}