below is the output where i'm getting the same times tamp throughout the loop., where i'm expecting that to log the current time stamp..
C:\Users\ilango>for /l %i in (1,1,5) do echo [%DATE% %TIME%] for %i
C:\Users\ilango>echo [Wed 01/13/2010 0:00:57.44] for 1
[Wed 01/13/2010 0:00:57.44] for 1
C:\Users\ilango>echo [Wed 01/13/2010 0:00:57.44] for 2
[Wed 01/13/2010 0:00:57.44] for 2
C:\Users\ilango>echo [Wed 01/13/2010 0:00:57.44] for 3
[Wed 01/13/2010 0:00:57.44] for 3
C:\Users\ilango>echo [Wed 01/13/2010 0:00:57.44] for 4
[Wed 01/13/2010 0:00:57.44] for 4
C:\Users\ilango>echo [Wed 01/13/2010 0:00:57.44] for 5
[Wed 01/13/2010 0:00:57.44] for 5
C:\Users\ilango>
---------- Post updated at 12:22 AM ---------- Previous update was at 12:07 AM ----------
[/COLOR]Ok, found a solution myself..
C:\Users\ilango\test>for /l %i in (1,1,5) do (VER | TIME | FINDSTR /R /C:"[0-9]"
) & echo for %i
C:\Users\ilango\test>(VER | TIME | FINDSTR /R /C:"[0-9]" ) & echo for 1
The current time is: 0:24:46.78
for 1
C:\Users\ilango\test>(VER | TIME | FINDSTR /R /C:"[0-9]" ) & echo for 2
The current time is: 0:24:46.82
for 2
C:\Users\ilango\test>(VER | TIME | FINDSTR /R /C:"[0-9]" ) & echo for 3
The current time is: 0:24:46.87
for 3
C:\Users\ilango\test>(VER | TIME | FINDSTR /R /C:"[0-9]" ) & echo for 4
The current time is: 0:24:46.90
for 4
C:\Users\ilango\test>(VER | TIME | FINDSTR /R /C:"[0-9]" ) & echo for 5
The current time is: 0:24:46.95
for 5
C:\Users\ilango\test>
but still, i don't understand why the earlier one didn't work!!?