본문 바로가기
정보기술/일반

[정보] Windows Shell Command (Rundll32.exe) 정보

by fermi 2003. 11. 8.
1. Rundll32 Command 검색

Dx21 | RunDLL32 Reference :
http://www.dx21.com/SCRIPTING/RUNDLL32/INDEX.ASP


2. Rundll32 Command 모음

출처 : http://groups.msn.com/windowsscript/rundll.msnw
---------------------------------------------------------------------------

This is a list of all the things I have found that you can do with rundll32.exe.
Note: commands are case sensitive and are executed with WshShell.Run .

Open With...
"rundll32.exe shell32.dll,OpenAs_RunDLL " & sFile, vbNormalFocus

Control Panel applets
Rundll32.exe shell32.dll,Control_RunDLL file.cpl @X
Replace file.cpl with the name of the control pannel .cpl file. Replace X with the applet number within the .cpl file.
Examples
Control Panel - Rundll32.exe shell32.dll,Control_RunDLL
Mouse - Rundll32.exe shell32.dll,Control_RunDLL main.cpl @0
Keyboard - Rundll32.exe shell32.dll,Control_RunDLL main.cpl @1
Printers - Rundll32.exe shell32.dll,Control_RunDLL main.cpl @2
Fonts - Rundll32.exe shell32.dll,Control_RunDLL main.cpl @3

Install/Uninstall - rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
Windows Setup - rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2
Startup Disk - rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3

Advanced Internet Properties - rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,5
Add New Hardware Wizard (9x) - rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1
Add New Printer Wizard (9x) - rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter

Connect to network printer - rundll32 printui,PrintUIEntry /in /n \\server\printer_name

Shutdown
Rundll32.exe user32.dll,LockWorkStation
rundll.exe user.exe,exitwindows



Regional
Screen Saver - rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
Install Screen Saver - rundll32.exe desk.cpl,InstallScreenSaver "File"
Date/Time - Rundll32.exe shell32.dll,Control_RunDLL timedate.cpl

Open With...
"rundll32.exe shell32.dll,OpenAs_RunDLL " & sFile, vbNormalFocus

Format Floppy Dialog - rundll32.exe shell32.dll,SHFormatDrive

Install Software from INF files
RunDll setupx.dll,InstallHinfSection section reboot-mode inf-name

NEVER_REBOOT = 0
ALWAYS_SILENT_REBOOT = 1
ALWAYS_PROMPT_REBOOT = 2
SILENT_REBOOT = 3
PROMPT_REBOOT = 4

Run the Pasport Wizard in XP
rundll32.exe netplwiz.dll, PassportWizardRunDll