批处理启动服务进程后自身自动退出
//AutoLockScreen.bat
%windir%\system32\rundll32.exe user32.dll,LockWorkStation
// AutoLockScreen.vbs
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "c:\AutoLockScreen.bat /start",0
//AutoLockScreen.bat
%windir%\system32\rundll32.exe user32.dll,LockWorkStation
// AutoLockScreen.vbs
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "c:\AutoLockScreen.bat /start",0