start/open windows explorer from code

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
 
J

Jason Hales

Include reference to System.Diagnostics: using System.Diagnostics;

and then: Process myProcess = Process.Start("Explorer.exe");
 
C

Cerebrus

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top