ENVDATE version 1.30 written by Lincoln Jaros
envdate [options]
options:
/d=nn + add or - subtract nn days from current date
/m=nn + add or - subtract nn months from current date
/y=nn + add or - subtract nn years from current date
/f=1 format month as 01, 02, 03... (default)
/f=2 format month as JAN, FEB, MAR...
/t include time in environment variable
/nt Windows NT option to create batch file (see notes below)
This program loads the current date and/or time into
environmental variables in DOS and Windows 95/98:
E_MONTH= E_HOUR=
E_DAY= E_MINUTE=
E_YEAR= E_SECOND=
E_DATE= E_TIME=
Windows NT does not provide a method for a program to change the
variables in the environment of the command shell that started
the program. As a work around, the /nt switch will cause ENVDATE
to place the necessary SET commands in a batch file named _RESULT.BAT
which it will create in the directory specified by the TEMP variable.
This file can be used by the parent batch file to load the variables
created by ENVDATE with the following batch file commands:
ENVDATE /nt
%TEMP%_RESULT.BAT
|