:: D&T.BAT - Gets Date and/or Time and saves it into a named environment :: Tom Lavedas :: http:://www.pressroom.com/~tglbatch/ :: variable. @echo %dbgt% off %3 echo %0 %%3 %%4 :: %1 %2> {a}.bat %3 dir {a}.bat | find "{A} " > {t}.bat %3 {t} del {?}.bat if [%4]==[] echo Date: %1 Time: %2 if not [%4]==[] set %4=%1 if not [%5]==[] set %5=%2