One-click synchronization, easy to start screen saver lock computer

  
        When we leave, we generally want to lock the computer and execute the screen saver at the same time. It is really not easy to achieve this. In order to meet everyone's requirements, after in-depth study of computer lock-up and start-up screensavers, finally found a practical approach. Go to the system directory "C:WinntSystem32 (Windows 2000)" or "C:WindowsSYstem32(Windows XP)", and then find the file with the extension scr, which is a screen saver. Double-click to run. After selecting this type of program, copy it to its current location and change its extension to exe, for example, “ssstars.exe”. After doing this work, you can open Notepad and enter the following content: @echo off %windir%system32ssstars.exe /s //Run the ssstars.exe file in the system directory %windir%system32rundll32.exe user32.dll , LockWorkStation //lock the computer @exit save the file as 1.bat, then right-click the file to select "send to the “ menu shortcuts "desktop shortcuts", and finally open the properties window of the newly created shortcut, In the "shortcuts", specify a shortcut for the operation of the shortcut, so that we only need to press the shortcut to start the screen saver and lock the computer when needed. Tip: What we are talking about here is to quickly lock the computer, but in some public places, it is necessary to prohibit the lock. In "Forbidden to lock the computer", the modification of the registry is introduced to achieve the method of prohibiting the locking of the public computer. It should be noted that if it is Windows XP, you need to open the user account item in the control panel, click “change the way the user logs in or log out", and then cancel the use of the welcome screen ” item to achieve the lock purpose.
Copyright © Windows knowledge All Rights Reserved