Click here to Skip to main content
15,885,365 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Show MyComputer, ControlPanel, RecycleBin, NetworkPlaces on Button Click

Rate me:
Please Sign up or sign in to vote.
4.90/5 (6 votes)
27 May 2011CPOL 11.8K   1   1
For Control Panel:Process.Start("control.exe");For My Computer:Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));For the rest, we can use GUID just like the original.For Recycle...
For Control Panel:

Process.Start("control.exe");


For My Computer:

Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));


For the rest, we can use GUID just like the original.

For Recycle Bin,

Process.Start("::{645FF040-5081-101B-9F08-00AA002F954E}");


and similarly for Network Places too.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 Very nice, practical solution! Pin
DrABELL27-May-11 14:57
DrABELL27-May-11 14:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.