Commandline tricks
Keywords: Windows Command line tricks
Windows Command-line tricks
- Launch "Copy Disk" dialog
Run("RunDLL32.exe","diskcopy,DiskCopyRunDll")
- Exit Windows with out prompting
Run("RunDLL32.exe","krnl386.exe,exitkernel")
- Print Printer Test Page
Run("RunDLL32.exe","msprint2.dll,RUNDLL_PrintTestPage")
- Dial-Up Connection Wizard
Run("RunDLL32.exe","rnaui.dll,RnaWizard")
- Open an Explorer window
Run("RunDLL32.exe","shell,shellexecute")
- Start the Control Panel
Run("RunDLL32.exe","shell32,Control_RunDLL")
- Launch "Open with" dialog box
Run("RunDLL32.exe","shell32,OpenAs_RunDLL")
- Open Explorer Help|About Dialog
Run("RunDLL32.exe","shell32,ShellAboutA")
- Launch "Format Disk" dialog box
Run("RunDLL32.exe","shell32,SHFormatDrive")
- Launch the Hardware Installation Wizard
Run("RunDLL32.exe","sysdm.cpl,InstallDevice_Rundll")
- Casade all windows
Run("RunDLL32.exe","user,cascadechildwindows")
- Refresh Explorer (same as F5 in an Explorer Window)
Run("RunDLL32.exe","user,repaintscreen")
- Tile all windows
Run("RunDLL32.exe","user,tilechildwindows")
Here's as trick, to disable the keyboard and mouse, but it only seems to work on Windows 95 / 98 (Systems that have Both RunDll32.dll and rundll.exe).
The following commands are not supported on Windows NT /2000. They will have no affect on NT/2000.
NOTE: Once this command is called you will *have* to REBOOT you system to get the MOUSE back.
Run("rundll32.exe","mouse,disable")NOTE: Once this command is called you will *have* to REBOOT you system to get the KEYBOARD back.Run("rundll32.exe","keyboard,disable")
Article ID: W14600Filename: Commandline tricks.txt