(view source code of sdate.bat as plain text)
@ECHO OFF
:: For REG.EXE 3.0 (Windows XP) and later versions
FOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v sDate 2^>NUL') DO SET sDate=%%A
:: For earlier REG.EXE versions
FOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International\sDate" 2^>NUL') DO SET sDate=%%A
ECHO HKEY_CURRENT_USER\Control Panel\International\sDate=%sDate%
page last modified: 2024-04-16; loaded in 0.0063 seconds