Already heard from the FOR loop in DOS. Well here you can use it. Try the
following command in your bat script.

    for /f in "tokens=1,2" %%a in ('date /t') do set curdate=%%b

Make sure that a normal date /t on a DOSBox give you both the actual day and the
date. If this is not so you should modify the command a bit. The tokens card
specify the number of fields in the output of the "date /t" command. All the
fields will be filled in alfabetical order.

Hope you have success, oderwise mail me

Michel Engels





Raul Giraldo Suarez <[EMAIL PROTECTED]> on 09/27/2000 09:41:28 PM

Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Michel Engels/BE/Devoteam)

Subject:  DATE IN DOS



Hi gurus..........

I'm designing a batch file in DOS  for restore some files backed up on
current date.  I don�t know how obtain current date from DOS and assign it
to a variable.  Any idea?

Thanks in advance.


Raul Giraldo Suarez
TSM  Bancolombia.









Reply via email to