DirtDevil Posted March 27, 2004 Share Posted March 27, 2004 Simple question I hope :Does someone know how to add a custom shortcut to the control panel? Link to comment Share on other sites More sharing options...
GreenMachine Posted March 27, 2004 Share Posted March 27, 2004 Control Panel has not shortcuts: just .cpl applets that are in the system32 directory. Link to comment Share on other sites More sharing options...
CuBie Posted March 27, 2004 Share Posted March 27, 2004 You can make .cpl's using C++ or C. Visual Basic/VB.net does not support making them.Ive seen a program about that is a .cpl loader - its a allredy made .cpl and it opens your program when it loads!Chris. Link to comment Share on other sites More sharing options...
DirtDevil Posted March 27, 2004 Author Share Posted March 27, 2004 You can make .cpl's using C++ or C. Visual Basic/VB.net does not support making them.Ive seen a program about that is a .cpl loader - its a allredy made .cpl and it opens your program when it loads!Chris.Well, the CPL-Loader sounds good... Can you post a link, please? Link to comment Share on other sites More sharing options...
RayOK Posted March 28, 2004 Share Posted March 28, 2004 Here is a little something I found on some website. You can create a shortcut using these commands I think. Try em out. And if you need a command-line program to make shortcuts, there is one at the link below.Shortcut 1.10 (from Optimum X)Control Panel module: CONTROL.EXE command: rundll32.exe shell32.dll,Control_RunDLL result: displays all the Control Panel icons in an Explorer view ----------------------Accessibility Properties module: ACCESS.CPL command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5 result: displays the Accessibility General properties command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1 result: displays the Accessibility Keyboard properties command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2 result: displays the Accessibility Sound properties command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3 result: displays the Accessibility Display properties command: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4 result: displays the Accessibility Mouse properties -------------------------Add New Hardware Wizard module: SYSDM.CPL command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1 result: runs the Add New Hardware wizard ---------------------------Add New Printer Wizard module: SHELL32.DLL command: rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter result: runs the Add New Printer wizard comments: Windows NT, it is possible to bring up a predefined Windows Dialogbox for connecting to a network printer - the ConnectToPrinterDlg API. However,this dialog is not accessible by Visual Basic programs running under Windows95. Therefore, you must use a Command line equivalent statement to invoke the"Add Printer Wizard" under Windows 95 as detailed above. (KB article Q154007) ----------------------------------Add/Remove Programs Property Page module: APPWIZ.CPL command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1 result: displays the Install/Uninstall tab selected command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2 result: displays the Windows Setup tab selected command: rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3 result: displays the Startup Disk tab selected -------------------------------Briefcase module: SYNCUI.DLL command: rundll32.exe syncui.dll,Briefcase_Create result: Creates a new Briefcase on the desktop -----------------------------------------Copy Disk Dialog module: DISKCOPY.DLL command: rundll32.exe diskcopy.dll,DiskCopyRunDll result: displays the Copy Disk dialog for removable media ----------------------------------Create New Shortcut module: APPWIZ.CPL command: rundll32.exe apwiz.cpl,NewLinkHere %1 result: Displays the Create New Shortcut dialog. Completing the filename inthe dialog creates a shortcut at the location specified by %1 ---------------------------------Date & Time Properties module: TIMEDATE.CPL command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0 result: displays Set Date & Time properties tab command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1 result: displays the Time Zone properties tab -----------------------------------------Dial Up Networking (DUN) module: RNAUI.DLL command: rundll32.exe rnaui.dll,RnaDial {name of connection to establish} result: displays the Connect To dialog for the passed connection. Ifconnected, displays the connection status dialog. command: rundll32.exe rnaui.dll,RnaWizard result: displays the Dial Up Networking Connection Wizard -------------------------------------------Display Options (Standard Windows Display Property Page*) module: DESK.CPL command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0 result: displays the Background tab selected command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1 result: displays the Screen Saver tab selected command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2 result: displays the Appearance tab selected command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3 result: displays the Settings tab selected comments: Note: Your video adapter may install other property pages intoDESK.CPL dynamically when selected with its own icon (i.e an ATI or Matroxcontrol panel icon). Additionally, it also may invoke its own control panelapplet mimicking the Windows display options. ----------------------------------------Fonts module: FINDFAST.CPL command: rundll32.exe shell32.dll,Control_RunDLL findfast.cpl result: displays the Office FindFast control panel applet (if installed) ---------------------------------------Fonts module: SHELL32.DLL command: rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL FontsFolder result: displays the Fonts Folder in Explorer view command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @3 result: Also displays the Fonts Folder in Explorer view ---------------------------------------Format Drive Dialog (floppy disk only) module: SHELL32.DLL command: rundll32.exe shell32.dll,SHFormatDrive result: displays the floppy disk Format Drive dialog. Causes the Drive A to beaccessed on showing. -------------------------------------Game Controllers module: JOY.CPL command: rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,0 result: displays the Game Controllers General property page command: rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,1 result: displays the Game Controllers Advanced property page ---------------------------------------HTML module: MSHTML.DLL command: rundll32.exe mshtml.dll,PrintHTML (HTML doc to print) result: sends the passed file to the printer -------------------------------------Internet Explorer 4 Control Panel module: INETCPL.CPL command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl result: displays Internet Properties, General Tab command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0 result: displays Internet Properties, General Tab (same as above) command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,1 result: displays Internet Properties, Security Tab command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,2 result: displays Internet Properties, Content Tab command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,3 result: displays the Internet Control Panel, Connection Tab command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,4 result: displays the Internet Control Panel, Programs Tab command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,5 result: displays the Internet Control Panel, Advanced Tab -----------------------------------Joystick Properties (also see Games) module: JOY.CPL command: rundll32.exe shell32.dll,Control_RunDLL joy.cpl result: displays the Joystick property page -----------------------------------------Mail and Fax Options module: MLCFG32.CPL command: rundll32.exe shell32.dll,Control_RunDLL mlcfg32.cpl result: displays the Microsoft Exchange Profiles general property page -------------------------------------Mail Postoffice Options module: WGPOCPL.CPL command: rundll32.exe shell32.dll,Control_RunDLL wgpocpl.cpl result: displays the Microsoft Postoffice Workgroup Admin property page -------------------------------Main Group Options/Properties module: MAIN.CPL command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @0 result: displays Mouse Properties command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1 result: displays Keyboard Properties, Speed tab command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,1 result: displays Keyboard Properties, Language tab command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,2 result: displays Keyboard Properties, General tab command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @2 result: displays the Printers Folder (including Add Printer) command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @3 result: displays the Fonts Folder in Explorer view command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @4 result: displays Power Management Properties -----------------------------------Modem module: MODEM.CPL command: rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add result: Runs the Add New Modem wizard -----------------------------------Multimedia & Sound Properties module: MMSYS.CPL command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0 result: displays the Multimedia/Audio property page command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1 result: displays the Multimedia/Video property page command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2 result: displays the Multimedia/MIDI property page command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3 result: displays the Multimedia/CD Music property page command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4 result: displays the Multimedia/Advanced property page command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1 result: displays the Sound Properties page -----------------------------------------Network Properties module: NETCPL.CPL command: rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl result: displays the Networks properties, Configuration tab -----------------------------------ODBC32 Data Source Administrator module: ODBCCP32.CPL command: rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl result: displays the ODBC32 Data Source Administrator properties dialog -------------------------------------Open With module: SHELL32.DLL command: rundll32.exe shell32.dll,OpenAs_RunDLL {drive:\path\filename} result: displays the application/file "Open With" dialog result: passing the full file drive, path and name as a parameter will causethe dialog to display the line "Click the program you want to use to open thefile '{filename}'". --------------------------------------Passwords Properties module: PASSWORD.CPL command: rundll32.exe shell32.dll,Control_RunDLL password.cpl result: displays the Passwords properties, Change Passwords tab -------------------------------------Power Management Properties module: POWERCFG.CPL command: rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl result: displays the Power Management properties, Power Schemes tab -------------------------------------------Printer module: SHELL32.DLL command: rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder result: displays the Printers Folder (including Add Printer) command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @2 result: Also displays the Printers Folder (including Add Printer) -------------------------------------------Regional Settings module: INTL.CPL command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0 result: displays the Regional Settings property page command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1 result: displays the Numbers property page command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2 result: displays the Currency property page command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3 result: displays the Time property page command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4 result: displays the Date property page -------------------------------------------------------Screen Saver Installation module: APPWIZ.CPL command: rundll32.exe desk.cpl,InstallScreenSaver c:\win\system\FlyingWindows.scr result: Installs the new screen saver and runs the display/screen saverpreview property page comments: Specify a valid path to the screen saver file to install. If you areinstalling a new screen saver, first copy the screen saver file into the\windows\system folder, then execute the above command. This will install thespecified saver as the current screen saver. It will not copy the file into thewindows\system folder. Replace the string above with the name of your actual.scr file. ---------------------------------------------------System Properties module: SYSDM.CPL command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0 result: displays the General property page command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1 result: displays the Device Manager property page command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2 result: displays the Hardware Profiles property page command: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3 result: displays the Performance property page ---------------------------------------------------Shutdown module: USER.EXE command: rundll32.exe user.exe,restartwindows result: forces Windows to perform a proper shutdown, and restart the computer command: rundll32.exe user.exe,exitwindows result: forces Windows to shutdown, and wait either to be turned off, or reset--------------------------------------------------------------------------Telephony Properties module: TELEPHON.CPL command: rundll32.exe shell32.dll,Control_RunDLL telephon.cpl users result: displays the Dialing Properties dialog --------------------------------------------------Themes module: THEMES.CPL command: rundll32.exe shell32.dll,Control_RunDLL themes.cpl result: displays the Themes control panel app (if installed) -----------------------------------TweakUI module: TWEAKUI.CPL command: rundll32.exe shell32.dll,Control_RunDLL tweakui.cpl result: displays the TweakUI control panel applet (if installed) -----------------------------------------Users Properties (Win98) module: INTECPL.CPL command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl users result: displays the Multi-User Settings properties dialog Link to comment Share on other sites More sharing options...
mazin Posted March 28, 2004 Share Posted March 28, 2004 Why don't you make a VBS file like this one? Study it carefully. It's for making a shortcut in Control Panel for TweakUI.On Error Resume NextSet WSHShell = WScript.CreateObject("WScript.Shell")Set fso = CreateObject("Scripting.FileSystemObject")SysDir = fso.GetSpecialFolder(1)Tweak = SysDir & "\tweakui.exe"If fso.FileExists(Tweak) Then Set WSHShell = WScript.CreateObject("WScript.Shell") p1 = "HKCR\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\" WshShell.RegWrite p1, "TweakUIXP" WshShell.RegWrite p1 & "InfoTip", "Starts TweakUI for Windows XP" WshShell.RegWrite p1 & "DefaultIcon\","%SystemRoot%\\System32\\tweakui.exe,0", "REG_EXPAND_SZ" WshShell.RegWrite p1 & "Shell\Open\Command\","tweakui.exe" WshShell.RegWrite p1 & "ShellFolder\Attributes",48,"REG_DWORD" WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\", "Add Tweakui to Control Panel"ElseEnd IfSet FSO = NothingSet WshShell = Nothing Link to comment Share on other sites More sharing options...
DirtDevil Posted March 28, 2004 Author Share Posted March 28, 2004 Thanks for your work RayOK but this is not what I need. Actually I have to create a CPL that launches a specify command. That's what I could need a CPL-Creator for... But thank you very much. I saved your list to my disk Link to comment Share on other sites More sharing options...
GreenMachine Posted March 28, 2004 Share Posted March 28, 2004 One could do something like that. Not exactly creating a shortcut, rather creating a "Special Folder" type, associating an action to that type, and including a folder of this type in the Control Panel's namespace. Carefull of the syntax, as well as the GUIDs. I suspect the same could be achieved with a .reg file, or using the REG utility.The Shortcut Utility does create shortcuts to most any program or dll, however, the problem of placing the shortcut inside the Control Panel remains. Link to comment Share on other sites More sharing options...
DirtDevil Posted March 28, 2004 Author Share Posted March 28, 2004 Yeah! Special Thanks to mazin. Allthough I don't need VBS... I figured out how to edit the registry myself using your idea. It works! Let's say you want to add userprofiles to your controlpanel. This is what I added to my registry:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C18}]@="Users"[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C18}]"InfoTip"="Add/Remove Users"@="Users"[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C18}\DefaultIcon]@="C:\\Windows\\System32\\shell32.dll,160"[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C18}\Shell][HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C18}\Shell\Open][HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C18}\Shell\Open\Command]@="rundll32 netplwiz.dll,UsersRunDll"That's it! Link to comment Share on other sites More sharing options...
RayOK Posted March 28, 2004 Share Posted March 28, 2004 No problem. Good list to have anyway.Yeah, I do have .reg code I use to add TweakUI and the other User Control Panel to the Control Panel.. They are:;TweakUI to Control Panel[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}]@="Tweak UI""InfoTip"="Starts the Tweak UI program which customizes advanced options in Windows"[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\DefaultIcon]@="%SystemRoot%\\\\System32\\\\tweakui.exe,0"[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell][HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open][HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open\command]@="tweakui.exe"[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\ShellFolder]"Attributes"=dword:00000030;User Accounts 2 to Control Panel[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]@="User Accounts 2""InfoTip"="Starts The Windows 2000 style User Accounts dialog"[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]@="%SystemRoot%\\\\System32\\\\netplwiz.dll,0"[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell][HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open][HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]@="Control Userpasswords2" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now