I have used two GUIDs to open the folders My Computer and My Documents.
Process.Start(\"iexplore.exe\", \"::{20d04fe0-3aea-1069-a2d8-08002b
Better still would be to skip explorer
entirely and just "start" the GUIDs directly:
Process.Start("::{20d04fe0-3aea-1069-a2d8-08002b30309d}");
...
Have you tried:
Process.Start("explorer.exe", "::{20d04fe0-3aea-1069-a2d8-08002b30309d}");
Process.Start("explorer.exe", "::{450d8fba-ad25-11d0-98a8-0800361b1103}");
?
Samdoss
Just enter the
System.Diagnostics.Process.Start(directoryPath);
Its very easy. Try that.
System.Diagnostics.Process.Start("...");
I know it looks doubtful but just run it. It'll work. This is the code for my computer. I don't know what it should be for My Documents.
I had to open MyDocuments and based on comments above I narrowed down the solution to open Explorer without side effects:
Process.Start("::{450d8fba-ad25-11d0-98a8-0800361b1103}");
I tested it on Windows Server 2008 R2.
Try explorer.exe:
Process.Start("explorer.exe", "::{20d04fe0-3aea-1069-a2d8-08002b30309d}");
Process.Start("explorer.exe", "::{450d8fba-ad25-11d0-98a8-0800361b1103}");