In win9x/2 k/XP, many friends are familiar with the “rundll32.exe system command, but do you know how to use it? I'm afraid I don't know much about it. . Dll files are the basis of windows, and all api functions are implemented in dll. It cannot run independently. Generally, it is loaded and called by processes. The simplest example of running a dllfile is to use rundll32.exe. the command format is rundll32.exe Dynamic Link Library name. The following describes how to use rundll32.exe.
Yiyun uses rundll32.exe to quickly "shut down, log off, restart, and lock the desktop"
Every day, we need to repeatedly shut down, deregister, restart, and lock the desktop. Is it very troublesome? You can now use rundll32.exe to simplify their operations.
Open the Notepad program and write the shutdown. bat, logoff. bat, reboot. bat, and lock. bat files respectively. Their contents are as follows:
1. shutdown. bat (shutdown)
Rundll32.exe. Exe shell32.dllSHExitWindowsEx 1
2. logoff. bat (logout)
Rundll32.exe. Exe shell32.dllSHExitWindowsEx 0
3. reboot. bat (restart)
Rundll32.exe. Exe shell32.dllSHExitWindowsEx 2
4. lock. bat (lock the desktop)
Rundll32.exe. Exe user32.dllLockWorkStation
0 indicates logout, 1 indicates shutdown, 2 indicates restart, and 4 indicates power off. Save these four files on the desktop, so that you can quickly perform operations by running the corresponding files!
Use rundll32.exe
When surfing the Internet, many friends are unknowingly installed with an Internet Explorer plug-in named "3721 Network Real Name, then we can enter "Chinese name" in IE to access the website. These functions are implemented by calling the "Network Real Name" DLL component through rundll32.exe.
Run the Registry Editor Program "regedit.exe" on a computer with a real-name local network installed. Expand "HKEY_LOCAL_MACHINE \ SOF" in sequence.
TWARE \ Microsoft \ Windows \ CurrentVersion \ Run \ reboot, find a startup item with the same name as external cnsmin.exe C \ WINNT \ DOWNLO1 \ CnsMin.dllRundll32.exe "(if it is Win98, here, C \ WINNT \ DOWNLO1 \ is C \ WINDOWS \ DOWNLO1 \ downloads, which is included in the dllfile. In this example, the network real-name function is implemented through a simple rundll32.exe.exe command.
Use the rundll32.exe command to call control panel options.
We often use tools in the control panel. Is it difficult to double-click the mouse continuously? You can use the rundll32.exe command to make quick calls.
Compile the control. bat file with the following content:
Rundll32.exe.exe shell32.dllControl _ RunDLL
Save it on the desktop and double-click its icon to quickly call the control panel.
You can use this method to call various tool options in the control panel:
Command rundll32.exe.exe shell32.dllControl _ RunDLL sysdm. cpl @ 1
Function: run the "Control Panel> Add new hardware" Wizard.
Command rundll32.exe.exe shell32.dllSHHelpShortcuts _ RunDLL AddPrinter
Function: run the "Control Panel> Add new printer" Wizard.
Command rundll32.exe.exe shell32.dllControl _ RunDLL appwiz. cpl1
The "Control Panel> Add/delete programs-install/uninstall" panel is displayed.
Command rundll32.exe.exe shell32.dllControl _ RunDLL appwiz. cpl2
The "Control Panel> Add/delete Programs> install Windows" panel is displayed.
Command rundll32.exe.exe shell32.dllControl _ RunDLL appwiz. cpl3
The "Control Panel> Add/delete Programs> Start disk" panel is displayed.
Run rundll32.exe.exe rnaui. dllnawizard
The new dial-up connection wizard window is displayed.
Command rundll32.exe.exe shell32.dllControl _ RunDLL desk. cpl0
The "show properties → background" option window is displayed.
Command rundll32.exe.exe shell32.dllControl _ RunDLL desk. cpl1
The "show properties → Screen Saver" option window is displayed.
Command rundll32.exe.exe shell32.dllControl _ RunDLL desk. cpl2
The "show Properties> appearance" option window is displayed.
Command rundll32.exe.exe shell32.dllControl _ RunDLL desk. cpl3
The "show properties → properties" option window is displayed.
Command rundll32.exe.exe shell32.dllSHHelpShortcuts _ RunDLL FontsFolder
The "font" folder of Windows is displayed.
The rundll32.exe command also has many usage instructions. Here is a brief introduction. If you are interested, you can study it on your own.