Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for stime.bat

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

  1. @ECHO OFF
  2. :: For REG.EXE 3.0 (Windows XP) and later versions
  3. FOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v sTime 2^>NUL') DO SET sTime=%%A
  4. :: For earlier REG.EXE versions
  5. FOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International\sTime"    2^>NUL') DO SET sTime=%%A
  6. ECHO HKEY_CURRENT_USER\Control Panel\International\sTime=%sTime%
  7.  

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