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.
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?
R2, 'physic' ?
=====================================
Life is too important to be taken seriously.M2
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |