Firstly thanks for looking
I have a batchfile that does a backup to a different server in a folder with yesterdays date + b so tonights will be :
25092005b
then i run a processing batch which works file
Then i do another back up which copies the files after the batch has finished and calls it todays date + a
26092005a
the problem I have is I dont know how to get yesterdays date (today - 1).
My batch file looks like this:
for /f "tokens=1-3 delims=/ " %%a in ('DATE /T') do set zdatea=%%a%%b%%c
Rem lux Back up - before the batch
REM I need something here to take one day away
md x:\backups\lX\%zdatea%c
Xcopy L:\Arev\LfdatlX x:\backups\lX\%zdatea%c
cls
l:
cd \arev
arev LAL /x m4096
for /f "tokens=1-3 delims=/ " %%a in ('DATE /T') do set zdateb=%%a%%b%%c
Rem lux Back up - ater the batch
md x:\backups\lX\%zdateb%A
Xcopy L:\Arev\LfdatlX x:\backups\lX\%zdateb%a
cls
Many thanks for your help
Richard