巧用RUNDLL32命令实现多种操作

https://www.jb51.net/os/windows/25889.html

============

使用Rundll32实现快速“关机、注销、重启、锁定桌面”

  我们每天都要重复关机、注销、重启、锁定桌面这些操作,是不是感觉很麻烦?现在可以使用Rundll32简化它们的操作。

  打开记事本程序,分别编写shutdown.bat、logoff.bat、reboot.bat、lock.bat文件,它们的内容分别如下:

    1.shutdown.bat(关机)

    rundll32.Exe shell32.dll SHExitWindowsEx 1

    2.logoff.bat(注销)

    rundll32.Exe shell32.dll SHExitWindowsEx 0

    3.reboot.bat(重启)

    rundll32.Exe shell32.dll SHExitWindowsEx 2

    4.lock.bat(锁定桌面)

    rundll32.Exe user32.dll LockWorkStation

  其中,0代表注销,1代表关机,2代表重启,4代表关闭电源。将这四个文件保存在桌面上,这样就可以通过运行相应的文件进行快速操作,岂不方便!

电脑技术 2021-12-25 07:11:41 通过 网页 浏览(385)

共有0条评论!

发表评论

更换一道题!