W
winter
Hi All,
im trying to do a quick little time diff script.
note: ill work out all the quirks leading 0 if AM, etc later....
set sms_time=%time:~0,8%
reg add HKLM\Software\Winter /v last_sms /t REG_SZ /d %sms_time%
::Short time later.....
req query HKLM\Software\Winter /v last_sms >%temp%\yada
for /f "skip=3 tokens=3" %a in (%temp%\yada) do set sms_sent=%a
set mytime=%time:~0,8%
set /a diff=%mytime%-%sms_sent%
I tried very unsucessfully to play with enabledelayedexpansion, and
replacing the % in the set /a cmd to ! - but im sure that im (a) not
understanding enabledelayedexpansion & (b) using it wrong as a result
of (a)
thanx guys n gals!
w
im trying to do a quick little time diff script.
note: ill work out all the quirks leading 0 if AM, etc later....
set sms_time=%time:~0,8%
reg add HKLM\Software\Winter /v last_sms /t REG_SZ /d %sms_time%
::Short time later.....
req query HKLM\Software\Winter /v last_sms >%temp%\yada
for /f "skip=3 tokens=3" %a in (%temp%\yada) do set sms_sent=%a
set mytime=%time:~0,8%
set /a diff=%mytime%-%sms_sent%
I tried very unsucessfully to play with enabledelayedexpansion, and
replacing the % in the set /a cmd to ! - but im sure that im (a) not
understanding enabledelayedexpansion & (b) using it wrong as a result
of (a)
thanx guys n gals!
w