Solved Using time function (easy?)

June 30, 2014 at 14:57:34
Specs: Windows XP
(sr for my bad english)
Hi guys!
i need with .batch

time function
smth like

if [$time == 10:02:33] goto alert

:alert blablabla..

^can you 'fix' it?

message edited by Blablabal

See More: Using time function (easy?)

Report •

June 30, 2014 at 18:48:48
✔ Best Answer
@echo off & setlocal
echo your currently active time format:
echo %time%

for /f "tokens=1-3 delims=.:" %%a in ("%time%") do if %%a:%%b:%%c neq 10:02:33 goto :1
echo %time%
::==== end
probly not the best way to achieve this. see: AT /?, or on win-7-up SCHTASKS /?

Report •
Related Solutions

Ask Question