Home All Groups Group Topic Archive Search About

start/open windows explorer from code

Author
30 Mar 2006 1:27 PM
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

Author
30 Mar 2006 1:37 PM
Jason Hales
Include reference to System.Diagnostics: using System.Diagnostics;

and then: Process myProcess = Process.Start("Explorer.exe");
Author
31 Mar 2006 4:29 AM
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.
Author
31 Mar 2006 7:14 AM
mikemeamail
Oh thanks a log guys, that's perfect !!

Cerebrus wrote:
Show quote
> 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.

AddThis Social Bookmark Button