|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
start/open windows explorer from codeHi,
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. 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. |
|||||||||||||||||||||||