Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @echo off
  2. if "%1"=="" goto :error
  3. if "%1"=="/?" goto :help
  4. if %1 LSS 0 goto :error
  5.  
  6. set checking=%time::0=:%
  7. set checking=%time:,0=,%
  8.  
  9. for /f "delims=:, tokens=1-4" %%i in ("%checking%") do set /a t=%%i*360000+%%j*6000+%%k*100+%1*100+%%l
  10.  
  11. :While
  12. set checking=%time::0=:%
  13. set checking=%time:,0=,%
  14.  
  15. for /f "delims=:, tokens=1-4" %%i in ("%checking%") do set /a tm=%%i*360000+%%j*6000+%%k*100+%%l
  16.  
  17. if %tm% GEQ %t% ( (echo END
  18. ) && goto :eof
  19. ) else goto :While
  20.  
  21. :error
  22. echo Write positive argument
  23. echo For help write /?
  24. goto :eof
  25. :help
  26. 'Some information about this programm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement