Public static void Open Control Panel multimedia properties audio () {process. start ("rundll32.exe", "shell32.dll, control_rundll mmsys. CPL, 0 ");} public static void Open Control Panel multimedia attribute video () {process. start ("rundll32.exe", "shell32.dll, control_rundll mmsys. CPL, 1 ");} public static void Open Control Panel multimedia attributes Midi () {process. start ("rundll32.exe", "shell32.dll, control_rundll mmsys. CPL, 2 ");} public static void Open Control Panel multimedia attributes CD music () {process. start ("rundll32.exe", "shell32.dll, control_rundll mmsys. CPL, 3 ");} public static void Open Control Panel multimedia properties device () {process. start ("rundll32.exe", "shell32.dll, control_rundll mmsys. CPL, 4 ");} public static void Open Control Panel sound () {process. start ("rundll32.exe", "shell32.dll, control_rundll mmsys. cpl @ 1 ");} public static void Open Control Panel Network () {process. start ("rundll32.exe", "shell32.dll, control_rundll netcpl. cpl ");} public static void Open Control Panel password () {process. start ("rundll32.exe", "shell32.dll, control_rundll password. cpl ");} public static void Open Control Panel Power Management () {process. start ("rundll32.exe", "shell32.dll, control_rundll powercfg. cpl ");} public static void Open Control Panel area settings attribute area settings () {process. start ("rundll32.exe", "shell32.dll, control_rundll intl. CPL, 0 ");} public static void Open Control Panel area set attribute number option () {process. start ("rundll32.exe", "shell32.dll, control_rundll intl. CPL, 1 ");} public static void Open Control Panel area set attribute currency option () {process. start ("rundll32.exe", "shell32.dll, control_rundll intl. CPL, 2 ");} public static void Open Control Panel area set attribute time option () {process. start ("rundll32.exe", "shell32.dll, control_rundll intl. CPL, 3 ");} public static void Open Control Panel area set attribute date option () {process. start ("rundll32.exe", "shell32.dll, control_rundll intl. CPL, 4 ");} open ODBC data source Manager () {process. start ("rundll32.exe", "shell32.dll, control_rundll odbccp32.cpl");} public static void Open Control Panel System Properties General () {process. start ("rundll32.exe", "shell32.dll, control_rundll sysdm. CPL, 0 ");} public static void Open Control Panel System Properties Device Manager () {process. start ("rundll32.exe", "shell32.dll, control_rundll sysdm. CPL, 1 ");} public static void Open Control Panel System attribute hardware configuration () {process. start ("rundll32.exe", "shell32.dll, control_rundll sysdm. CPL, 2 ");} public static void Open Control Panel System attribute performance () {process. start ("rundll32.exe", "shell32.dll, control_rundll sysdm. CPL, 3 ") ;}//// custom execution function, so that the following call // public static void execute (string doscommand) /// {// create a process object // process dos = new process (); // processstartinfo P = new processstartinfo (); // P. filename = "cmd.exe"; // P. arguments = doscommand; // do not use the System Shell Program Start // P. useshellexecute = false; // do not create a window // P. createnowindow = true; // dos. startinfo = P; // dos. start (); ///}/* shutdown-s-t 3600-F Force Shutdown an hour later. Force shutdown. This is mainly because some programs cannot be shut down.-S shutdown-r restart-F force-t time- A cancel shutdown-l cancel-I show what the user interface is. Try it. */public static void shut down and restart the computer () {process. start ("shutdown.exe", "-R");} public static void close computer () {process. start ("shutdown.exe", "-S-F");} // you can set the countdown to public static void to close the computer (string time) {string S = "-s-t" + time; process. start ("shutdown.exe", S);} public static void cancel computer () {process. start ("shutdown.exe", "-l");} public static void undo close computer () {process. start ("shutdown.exe", "-a");} open the desktop theme Panel () {process. start ("rundll32.exe", "shell32.dll, control_rundll themes. cpl ");} public static void open URL (string address) {process. start (Address);} public static void run program (string name) {process. start (name);} public static void display taskbar () {showwindow (findwindow ("shell_traywnd", null), sw_show);} public static void hide taskbar () {showwindow (findwindow ("shell_traywnd", null), sw_hide);} public static void send mail (string address) {string S = "mailto:" + address; process. start (s);} public static void send email () {process. start ("mailto: feiyangqingyun@163.com");} public static string get system folder () {string S = environment. getfolderpath (environment. specialfolder. system); Return s;} open the system folder () {string S = environment. getfolderpath (environment. specialfolder. system); process. start (s);} public static string get ProgramFiles directory () {string S = environment. getfolderpath (environment. specialfolder. programFiles); Return s;} public static void open the ProgramFiles directory () {string S = environment. getfolderpath (environment. specialfolder. programFiles); process. start (s);} public static string get logical desktop () {string S = environment. getfolderpath (environment. specialfolder. desktop); Return s;} public static void Open Logical desktop () {string S = environment. getfolderpath (environment. specialfolder. desktop); process. start (s);} public static string get the Startup Program Group () {string S = environment. getfolderpath (environment. specialfolder. startup); Return s;} open the Startup Program Group () {string S = environment. getfolderpath (environment. specialfolder. startup); process. start (s);} public static string get cookies folder () {string S = environment. getfolderpath (environment. specialfolder. cookies); Return s;} open the cookies folder () {string S = environment. getfolderpath (environment. specialfolder. cookies); process. start (s);} public static string get internet history folder () {string S = environment. getfolderpath (environment. specialfolder. history); Return s;} open the Internet history folder () {string S = environment. getfolderpath (environment. specialfolder. history); process. start (s);} public static string get my computer folder () {string S = environment. getfolderpath (environment. specialfolder. mycomputer); Return s;} public static void open my computer folder () {string S = environment. getfolderpath (environment. specialfolder. mycomputer); process. start (s);} public static string get mymusic folder () {string S = environment. getfolderpath (environment. specialfolder. mymusic); Return s;} public static void open the mymusic folder () {string S = environment. getfolderpath (environment. specialfolder. mymusic); process. start (s);} public static string get mypictures folder () {string S = environment. getfolderpath (environment. specialfolder. mypictures); Return s;} public static void open the mypictures folder () {string S = environment. getfolderpath (environment. specialfolder. mypictures); process. start (s);} public static string get startmenu folder () {string S = environment. getfolderpath (environment. specialfolder. startmenu); Return s;} public static void open the startmenu folder () {string S = environment. getfolderpath (environment. specialfolder. startmenu); process. start (s );}