zharry

UnlimitedComputerTimeTPL

Jan 11th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.70 KB | None | 0 0
  1. rem Revision 0.1.0.2
  2.  
  3. rem Program Made by zharry from Pastebin
  4. rem Command Line Made by zharry with assistance jackyliao123 from Pastebin
  5. rem This program is licensed under the Creative Commons BY-SA
  6. rem These four rem lines must be given as a part of the license
  7.  
  8. rem Dear TPL staff, as hard as you have tried to prevent me from:
  9. rem 1. Having to login/logoff every 15 minutes on express computers
  10. rem 2. Renewing my time even after I use my library card number
  11. rem 3. Opening a command prompt to use the programs I normally do
  12. rem I found just my way around it.
  13.  
  14. rem This is in no way an infringement, and is only intended to provide
  15. rem the right of Freedom and ease of use.
  16.  
  17. @echo off
  18. title Unlimited Compter Time @ TPL
  19. cls
  20. taskkill /F /IM TimeoutClient.exe 2>nul 1>nul && echo Program 1 Stopped || echo Failed
  21. taskkill /F /IM TimeoutClientMon.exe 2>nul 1>nul && echo Program 2 Stopped || echo Failed
  22. echo shutdown -l > logout.bat
  23. echo If either lines above display "Failed"
  24. echo then this program does not work on this computer
  25. echo If the programs were stopped, run logout.bat to Logout/Logoff.
  26. echo Press any key to open a command prompt...
  27. pause >nul
  28. cls
  29. title Command Prompt
  30. ver > sysver.txt
  31. find sysver.txt "Microsoft" | find "Microsoft"
  32. del sysver.txt
  33. echo (c) 2013 Microsoft Coporation. All rights reserved.
  34. echo.
  35. :start
  36. set /p command="%cd%>"
  37. %command%
  38. if "%command%"=="" (
  39.         goto start
  40. ) else (
  41.         echo.
  42. )
  43. set command=
  44. goto start
  45.  
  46. rem Update 0.1.0.2 release notes: Jan. 1, 2016
  47. rem + Renamed Logoff to Logout to match original Library Program
  48.  
  49. rem Update 0.1.0.1 release notes: Jan. 1, 2016
  50. rem + Added logoff functionality
  51. rem + Fixed spelling mistake in file name
Add Comment
Please, Sign In to add comment