c# how to open file explorer
Process.Start("explorer.exe" , @"C:\Users");
c# how to open file explorer
Process.Start("explorer.exe" , @"C:\Users");
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));
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us