Backing into an .awt file

Ok, here you go. You asked. Now before you see this a couple of things. This is the previous release of Winzip. I think the current one has this built in. Not sure. With that one you had to download a free addon called wzzip which took the batch command options and executed it.Below, I first calculate a unique name from the date so that was able to keep 2 days worth of backups, not just one. the variable %name% keeps the current name.Before backing up the main folder Certegy, I copy in some key files like the Lectora Library, my latest Powerpoint toolbar and macros.All the options are explained when in help files that come with the free batch thingie. Again, I think the new version of Winzip has some things that allow you to do this without having to know so much batch stuff. Once you have all this in a .bat file useing Notepad, use Control Panel > Scheduler to make it run every hour.

Code:

set n=%date:~8,1%if %n% == 0 set nd=1if %n% == 1 set nd=2if %n% == 2 set nd=1if %n% == 3 set nd=2if %n% == 4 set nd=1if %n% == 5 set nd=2if %n% == 6 set nd=1if %n% == 7 set nd=2if %n% == 8 set nd=1if %n% == 9 set nd=2Set name=%nd%-%time:~0,2%del /Q "C:Documents and SettingsBenMy DocumentseProfCLIENTSCertegyBackups OfLectora Library*.*"del /Q "C:Documents and SettingsBenDesktopCertegy BackupsHourlycertegy %name%.zip"copy /y "C:Program FilesTrivantisLectora Enterprise EditionLibrary*.*" "C:Documents and SettingsBenMy DocumentseProfCLIENTSCertegyBackups OfLectora Library" copy /y "C:Documents and SettingsBenApplication DataMicrosoftPowerPointPPT11.pcb" "C:Documents and SettingsBenMy DocumentsKEYFILESMS OfficePPT11.pcb"copy /y "C:Documents and SettingsBenApplication DataMicrosoftPowerPointPPT11.pcb" "C:Documents and SettingsBenMy DocumentseProfCLIENTSCertegyBackups OfPPT11.pcb"copy /y "C:Documents and SettingsBenMy DocumentsKEYFILESMS OfficePowerPoint Macros.ppt" "C:Documents and SettingsBenMy DocumentseProfCLIENTSCertegyBackups OfPowerPoint Macros.ppt"C:/wzzip -o -r -p -u -x"Thumbs.db" "C:Documents and SettingsBenDesktopCertegy BackupsHourlycertegy %name%.zip" "C:Documents and SettingsBenMy DocumentseProfCLIENTSCertegy"

ben

Discussions have been disabled for this post