Using those hard coded Guid values doesn't look like the best way of achieving this.
You could use the Environment.GetFolderPath function to get the path of any of the system special folders. It accepts an Environment.SpecialFolder enum.
This way it'd be more robust, because you wouldn't have any "magic" hardcoded values.
Here's how you'd use it:
//get the folder paths
string myComputerPath = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer);
string myDocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
//open explorer and point it at the paths
System.Diagnostics.Process.Start("explorer", myComputerPath);
System.Diagnostics.Process.Start("explorer", myDocumentsPath);
Important note for Windows 7 users
It seems that trying to use this code to open My Computer on Windows 7 incorrectly results in the Libraries folder being opened instead. This is because the default behaviour of running explorer with an empty path has changed in Windows 7.
I've filed the following bug report over at connect, go and give it an upvote if you think that this is important!
https://connect.microsoft.com/VisualStudio/feedback/details/757291/environment-getfolderpath-not-working-correctly-in-windows-7#details
(Thanks to JeremyK in the comments for pointing this out)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…