
Hi,
How to I grab the (simple) contents of a file (which will be YYYYMMDD each day) and assign it to a variable?
So, the file mydatefile.txt contains 20130204 and I want the batch script to assign '20130204' to the variable a.
(All of the ancillary things I've worked thru, and can do - except for assigning - the contents of a file - to a variable.)
For you unixy-types:
a=`cat mydatefile.txt`
(This will be for a batch script that contains a once-per-day routine and executed from Startup)
tia,
Matt