@ECHO OFF TITLE BACKUP ROUTINE BY IAN MATTHEWS REM ***************************** REM * Robocopy Desktop Backup REM * Ian Matthews of Up & Running Technologies Incorporated, Calgary, Alberta REM * No Warrenty - Use at your own risk REM * April 22, 2009 REM * Updated REM * TODAY variable assistance from from http://www.computing.net/answers/windows-xp/batch-file-using-date-command-to-cr/151468.html REM ****************************** REM CREATE TODAY VARIABLE FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B SET today=%yyyy%-%mm%-%dd% SET /P CHK=MAKE SURE ALL PROGRAMS ALL CLOSED, Press ENTER to continue REM WHAT DRIVE TO BACKUP TO SET /P DRV=What disk do you want to backup TO (i.e. Type E, F, or G, then press ENTER): robocopy "%userprofile%\AppData\Local\Microsoft\Outlook" "%DRV%:\%username%\%today%\Outlook" /e /mir /r:2 /w:7 robocopy "%userprofile%\AppData\Roaming\Microsoft\Outlook" "%DRV%:\%username%\%today%\NK2" /e /mir /r:2 /w:7 robocopy "%userprofile%\desktop" "%DRV%:\%username%\%today%\Desktop" /e /mir /r:2 /w:7 robocopy "%userprofile%\Favorites" "%DRV%:\%username%\%today%\Favorites" /e /mir /r:2 /w:7 robocopy "%userprofile%\Documents" "%DRV%:\%username%\%today%\Documents" /e /mir /r:2 /w:7 robocopy "%userprofile%\Pictures" "%DRV%:\%username%\%today%\Pictures" /e /mir /r:2 /w:7 robocopy "%userprofile%\Videos" "%DRV%:\%username%\%today%\Videos" /e /mir /r:2 /w:7 robocopy "%userprofile%\Music" "%DRV%:\%username%\%today%\Music" /e /mir /r:2 /w:7 SET /P dn=DONE! Now Check your backup to ensure it looks right. Press any key to close.