Advertisement
Najeebsk

EXPIRATION-DATE.bat

Dec 30th, 2023
1,703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.60 KB | None | 0 0
  1. @echo off
  2.  
  3. for /f "tokens=* delims=" %%a in ('wmic os get LocalDateTime /value') do for /f "tokens=* delims=" %%# in ("%%a") do set "%%#"
  4.  
  5. set "LocalDateTime=%LocalDateTime:~0,8%"
  6.  
  7. ::echo %LocalDateTime%
  8.  
  9. :: EXPIRATION DATE ::
  10. set "EXP_DATE=20181130"
  11. :::::::::::::::::::::
  12.  
  13.  
  14. if %LocalDateTime% GTR %EXP_DATE% (
  15.     echo this wont work anymore
  16.     exit /b
  17. )
  18.  
  19.  
  20. START "" "C:\Program Files (x86)\Proxifier\Proxifier.exe"
  21. timeout /t 5 >NUL
  22. START "" "E:\Program Files (x86)\Epic
  23. Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe"
  24. timeout /t 65 >NUL
  25. Taskkill /IM "Proxifier.exe" /F
  26. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement