Advertisement
Guest User

Lock.bat

a guest
Jun 19th, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. @echo off
  2. taskkill /f /IM explorer.exe
  3. echo Enter password to login, Enter * to logout:
  4. SET /P M=
  5. IF %M%==password GOTO :start
  6. IF %M%==* "C:\Users\Nathan\Desktop\Old Desktop\Logoff.bat"
  7. :start
  8. start C:\Windows\explorer.exe
  9. taskkill /pid cmd.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement