Could someone please help me fix this batch script below. I would really apperciate your help.
We use imagex from microsoft for our imaging. This batch script copies captures the image I prepare which works fine. The 3 steps that don't work are "REM" lines in the script.
First REM should use the name as the current date
Second REM should copy the previous image.wim file to an archive folder before deleting
Third REM should delete the image.
The way it works right now is the new image.wim file just gets overwritten on the previous image.wim and the script doesn't copy the previous image.wim file into the achrive folder before overwritting. Achrive is required just in case we need to go back to the old image.
This is a windows 7 image. Please let me know if you need any additional information.
Title Capturing Laptop Base Image
REM SET date="%date:~10,4%-%date:~4,2%-%date:~7,2%"
REM START /wait xcopy i:\lenovo\base\blank\image.wim i:\lenovo\base\blank\archive\%date%\
REM START /wait del i:\lenovo\base\blank\image.wim
imagex /compress fast /capture D: i:\lenovo\base\blank\image.wim "Laptop Base Image" /verify
Edited by sam240, 16 April 2015 - 01:07 PM.