Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for timemark.bat

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

  1. @ECHO OFF
  2. SET Time.Marker=%Time%
  3. FOR /F "tokens=1-4 delims=.,:-" %%A IN ("%Time.Marker%") DO (
  4. 	SET Time.Marker.Hours=%%A
  5. 	SET Time.Marker.Minutes=%%B
  6. 	SET Time.Marker.Seconds=%%C
  7. 	SET Time.Marker.Hundredths=%%D
  8. )
  9. IF 1%Time.Marker.Hours% LSS 20 SET Time.Marker.Hours=0%Time.Marker.Hours%
  10. SET Time.Marker
  11.  

page last uploaded: 2017-07-06, 12:37