Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Environment variables

Status
Not open for further replies.

sc7090

Technical User
Oct 28, 2003
21
0
0
IT
Hi to everybody. I would like to be able to create an environment variable that changes every day: in particular i would like to create a variable where to store the date of the day. I know how to use the comand set, but i need to use it, for example, with function date /t that returns me the date. Anybody has an idea?
The scope of this variable is to create a file named %dateoftheday%.log from a batch file.
Any suggestion is welcome.

Claudio.
 
been along time since i used batch but
date /t>c:\date.txt
will store the current date to a text file

not what your asking but may help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top