System.Diagnostics.Process.Start
-
I am trying to bring up a directory in the Windows Explorer. System.Diagnostics.Process.Start("Explorer.exe") brings up Windows Explorer just fine System.Diagnostics.Process.Start("Explorer.exe", dirPath) brings up the directory in a regular window (with no folder tree on the left) How do I get the directory to come up in Windows Explorer? Thanks, Elena
-
I am trying to bring up a directory in the Windows Explorer. System.Diagnostics.Process.Start("Explorer.exe") brings up Windows Explorer just fine System.Diagnostics.Process.Start("Explorer.exe", dirPath) brings up the directory in a regular window (with no folder tree on the left) How do I get the directory to come up in Windows Explorer? Thanks, Elena
Process.Start("explorer.exe", string.Concat("/e,", dirPath);
If you want the directory to be the root of the explorer window, use "/e,/root," instead of just "/e,". See http://support.microsoft.com/default.aspx?scid=kb;en-us;152457[^] for more information and options.
-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----