open file in explorer c#
// required in addition to other 'using necessary
using System.Diagnostics;
using System.IO;
private void OpenFolder(string folderPath)
{
if (Directory.Exists(folderPath))
{
ProcessStartInfo startInfo = new ProcessStartInfo
{
Arguments = folderPath,
FileName = "explorer.exe";
};
Process.Start(startInfo);
}
else
{
MessageBox.Show(string.Format("{0} Directory does not exist!", folderPath));
}
}
Also in C#:
- same click event diffrenet buttonms c#
- c# enum variable set to nonthing
- check if current time is in the morning c#
- font family behind code uwp c#
- c# creating exceptions
- The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
- c# change material in code
- how to get component in unity c#
- using serial port in c#
- singleton unity
- c# bitmap to Image
- unknown discriminator value mongodb
- c# graphics draw filled rectangle
- c# System.Resources.MissingManifestResourceException error
- .net core change localhost port
- c# get list of all class fields
- winforms messagebox with button
- unity 2d top down movement
- parsing string to int c#
- c# post request
- c# Authorization has been denied for this request
- How to make a function in C#
- c sharp list length
- convert int to double c#