@echo off:: Dad's backup.bat to copy My Documents, Mail/Addressbook and IE Favorites to a USB HDD:::: variablesset drive=F:\BACKUPset backupcmd=xcopy /e /d /h /i /r /yset hour=%time:~0,2%if "%hour:~0,1%"==" " set hour=0%time:~1,1%set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%_%hour%_%time:~3,2%clsecho Connect the external Hard Drive to computer and powerecho and check that the power switch is ON.pause:: simple check to see if backup folder is presentIF NOT EXIST %drive% GOTO :DRIVEERRORIF EXIST %drive% GOTO :BACKUP:BACKUPecho ### Backing up Thunderbird Mail and Address Book folders...%backupcmd% "%USERPROFILE%\Application Data\Thunderbird\Profiles" "%drive%\Thunderbird\%folder%"echo ### Backing up My Documents...%backupcmd% "D:\My Documents" "%drive%\My Documents\%folder%"echo ### Backing up Internet Explorer Favorites%backupcmd% "%USERPROFILE%\Favorites" "%drive%\Favorites\%folder%"echo.echo BACKUP COMPLETE@pauseGOTO END:DRIVEERRORclsecho MISSING BACKUP DRIVE !!! MAKE SURE DRIVE IS CONNECTED AND READYecho AND DOUBLE CLICK THE ICON AGAIN. IF PROBLEM PERSISTS CONTACT MEpause:END