:: GTD.BAT - Gets Time and/or Date and saves it into an environment :: Tom Lavedas :: http:://www.pressroom.com/~tglbatch/ :: variable. @echo %dbgg% off if [%1]==[] %0 TIME DATE > curren}.bat echo. | %1 > current.bat echo %%5 if not [%%4]==[] shift >>current.bat echo %%5 set {%1}=%%3 call curren} if not [%2]==[] %0 %2 del curren?.bat