@echo off :: :: oebackup.bat :: :: Backs up your Outlook Express files (mailboxes and messages). Can :: be used in a Windows scheduler task for automatic email backups. :: :: Find the latest version at :: :: :: Author: Heinz Tschabitscher :: :: Enter the path to your Outlook Express store folder :: :: for example: :: set source="C:\Documents and Settings\sunya\Local Settings\Application Data\Identities\{63685031-B061-486A-8988-391C5EQ7548F}\Microsoft\Outlook Express" set source="" :: Enter the path to your backup location (on WinXP, you can :: use %date% to create a sub-folder with the backup's date) :: for example: :: set destination="E:\backups\%date%" set destination="" :: If you use Windows 95 or 98, remove the /o and /x switches xcopy %source% %destination% /m /s /v /c /i /q /h /k /y /o /x :: Copy the Windows address books, too. Note that they will be in :: the same folder as your Outlook Express data (with the extension :: .wab). Do not copy them to your Outlook Express store folder :: when restoring, but to "%appdata%\Microsoft\Address Book". :: :: does this work on Windows 9x/ME? Again, remove the /o and /x :: switches ::set source="%appdata%\Microsoft\Address Book" ::xcopy %source% %destination% /m /s /v /c /i /q /h /k /y /o /x