I need to schedule a daily save from a virtual machine running on Dos 6.22, and to do so I need to stock the date variable and use it to do a differential backup. Otherwise the backup operation would take too much time, since it will copy the same files again and again.
I tried everything and apparently the date variable isn't available in this version, and if I want to manage variables I need to do it in a separate batch file.
I tried the robocopy, but then again it isn't available for this version of Dos.
Is there anyone who could help me with this ? It's been a week since i've been working on this.
Cheers,
To get the date into a variable is nearly easy.
You need a template file (_Date.tmp) with exactly one line without a new line, containing:
Then you could use it in your batch file (main.bat) like
But then you have to split the string (
Today's date is 20/01/2015) in the variable.That is a bit more tricky, but can be done ...