Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for isrtcset.bat

(view source code of isrtcset.bat as plain text)

  1. @GOTO Run
  2. o 70 0E
  3. i 71
  4. q
  5.  
  6. :Run
  7. @ECHO OFF
  8. IF "%~1"=="" (
  9. 	FOR /F "skip=1" %%A IN ('DEBUG ^< "%~fs0" ^| FIND /V "-"') DO IF 0x0%%A GEQ 0x080 COLOR FF
  10. ) ELSE (
  11. 	ECHO.
  12. 	ECHO IsRTCSet.bat,  Version 1.00 for Windows NT 4 and later
  13. 	ECHO Return errolevel 1 if the CMOS Real Time Clock is not set
  14. 	ECHO.
  15. 	ECHO Usage:    CALL ISRTCSET
  16. 	ECHO           IF ERRORLEVEL 1 ^(
  17. 	ECHO               DATE
  18. 	ECHO               TIME
  19. 	ECHO           ^)
  20. 	ECHO.
  21. 	ECHO Sources:
  22. 	ECHO http://mirror.href.com/thestarman/asm/debug/debug2.htm
  23. 	ECHO http://www.plasma-online.de/textual/download/misc/cmos_registers.html
  24. 	ECHO.
  25. 	ECHO Written by Rob van der Woude
  26. 	ECHO http://www.robvanderwoude.com
  27. )
  28.  

page last modified: 2024-04-16; loaded in 0.0080 seconds