Date And Time not getting Updated....!

May 17, 2012 at 02:01:29
Specs: Windows XP
hi everyone,
i am calling many batch file from one batch file.
the one batch file from which i am calling other batch files contains this
echo %DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2% %TIME:~0,2%:%TIME:~3,2%:%TIME:~6,2% Starting the 1st process...!
2nd process...!
nth process...!

what happens here is windows calculates this value only first time and prints same value every time.
and i am using that echo statement for 20 times.
so 20 times same time stamp gets printed.
and i am not able to see what time is taken by which process.
so i want the updated time and date for every process.
i want this pattern 2012-05-15 13:59:01.
i even stored it in a variable and tried to print....but i got same output...!
any suggestions?
thank you.


See More: Date And Time not getting Updated....!

Report •


#1
May 17, 2012 at 06:38:43
My physicpsychic powers tell me you have lines that start with SET DATE= and/or SET TIME= somewhere in your code. Remove those lines.

How To Ask Questions The Smart Way

EDIT: Spell checkers, how do they work?


Report •

#2
May 18, 2012 at 00:23:08
R2,

'physic' ?


=====================================
Life is too important to be taken seriously.

M2


Report •

#3
May 18, 2012 at 07:57:44
My psychic powers inhibit my spelling abilities!

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question