It appears broken on my machine using MM-DD HH:MM:SS but works as
advertised using YYYYMMDDHHMMSS
.) Works using compressed time format
D:\>type test.btm %+ echo %_date %_time %+ test.btm
do until datetime 20100603081420
echo %_time
delay 1
enddo
echo Batchfile done.
2010-06-03 08:14:16
08:14:16
08:14:17
08:14:18
08:14:19
Batchfile done.
.) Fails using expanded time format
D:\>type test.btm %+ echo %_date %_time %+ test.btm
do until datetime 2010-06-03 08:15:00
echo %_time
delay 1
enddo
echo Batchfile done.
2010-06-03 08:14:49
08:14:49
Batchfile done.
D:\>
On Thu, Jun 3, 2010 at 7:47 AM, vefatica <> wrote:
> Did anyone confirm that it's broken?
>
>
> Code:
> ---------
> v:\> type dodo.bat & echo Now: %_date %_time^r^n^r^n & dodo.bat
> do until datetime 2010-06-03 10:46:00
> echo %_time
> delay 1
> enddo
> echo Batchfile done.
>
> Now: 2010-06-03 10:45:50
>
>
> 10:45:50
> Batchfile done.
> ---------
>
>
>
>
--
Jim Cook
2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Monday.