start/open windows explorer from code

  • Thread starter Thread starter mikemeamail
  • Start date Start date
M

mikemeamail

Hi,

I wish i could start the windows explorer control directly from the
code but i was not able to find the right way to do it.
Could anybody help me please ?
Thanks a lot,
Mike
 
Include reference to System.Diagnostics: using System.Diagnostics;

and then: Process myProcess = Process.Start("Explorer.exe");
 
Hi Mike,

To add to Jason's solution :

You probably want to open a specific folder using Windows Explorer,
therefore :
-----------------------------------
Process.Start("Explorer.exe", "C:\Windows")
-----------------------------------

Here the second string is the argument passed to Explorer.exe.

Regards,

Cerebrus.
 
Back
Top