How To Open Explorer To A Specific Directory Using C#



TODO:

Have you ever wanted to launch explorer from your C# application to a specified directory?

 

SOLUTION:

using System.Diagnostics;

//class and other code goes here...

//set your location here
string explorerLocation = "C:\\Temp\\MyLocation";

//open the location
System.Diagnostics.Process.Start(explorerLocation);

 

NOTES:

There are no notes on this topic



Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading