Code: Select all
@ECHO OFF
TITLE Backup and fix tool
ECHO ****************************************************
ECHO * Backup Tool Version 0.0.5a *
ECHO ****************************************************
ECHO.
ECHO Please note that we do NOT give ANY warranty
ECHO That this will work!
ECHO ONLY FOR VISTA!
ECHO Press CTRL+C to end the copying at any time
ECHO.
ECHO ****************************************************
PAUSE
CLS
ECHO ****************************************************
ECHO.
ECHO Copying files from folder %username%\documents\
ECHO.
ECHO ****************************************************
XCOPY c:\users\%username%\documents d:\backup\%date%\documents\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next
ECHO.
:next
ECHO ****************************************************
ECHO.
ECHO Copying files from folder %username%\pictures\
ECHO.
ECHO ****************************************************
XCOPY c:\users\%username%\pictures d:\backup\%date%\pictures\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next2
ECHO.
PAUSE
:next2
ECHO ****************************************************
ECHO.
ECHO Copying files from folder %username%\sendto\
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\AppData\Roaming\Microsoft\Windows\SendTo d:\backup\%date%\sendto\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next3
ECHO.
PAUSE
:next3
ECHO ****************************************************
ECHO.
ECHO Copying files from folder %username%\Favorites\
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\Favorites d:\backup\%date%\favorites\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next4
ECHO.
PAUSE
:next4
ECHO ****************************************************
ECHO.
ECHO Copying files from folder %username%\Desktop\
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\Desktop d:\backup\%date%\desktop\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next5
ECHO.
PAUSE
:next5
ECHO ****************************************************
ECHO.
ECHO Backing up your Mozilla folder (if any)
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\AppData\Roaming\Mozilla d:\backup\%date%\Mozzila\roaming /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next6
ECHO.
PAUSE
:next6
ECHO ****************************************************
ECHO.
ECHO Backing up your hamachi folder (if any)
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\AppData\Roaming\Hamachi d:\backup\%date%\Hamachi\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next7
ECHO.
PAUSE
:next7
ECHO ****************************************************
ECHO.
ECHO Backing up your uTorrent folder (if any)
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\AppData\Roaming\uTorrent d:\backup\%date%\uTorrent\ /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next8
ECHO.
PAUSE
:next8
ECHO ****************************************************
ECHO.
ECHO Backing up your Mozzila (bookmarks) folder (if any)
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\AppData\Local\Mozilla d:\backup\%date%\Mozzila\local /s /e /v /i /z
if errorlevel 4 goto lomem
if errorlevel 2 goto usab
if errorlevel 0 goto next9
ECHO.
PAUSE
:next9
ECHO ****************************************************
ECHO.
ECHO Backing up your Filezilla folder (if any)
ECHO.
ECHO ****************************************************
XCOPY C:\Users\%username%\AppData\Roaming\FileZilla d:\backup\%date%\FileZilla\ /s /e /v /i /z
if errorlevel 0 goto success
ECHO.
PAUSE
REM Start the LOW MEMORY FUNCTION
:lomem
CLS
ECHO ****************************************************
ECHO.
ECHO The drive has insufficient free memory please make
ECHO sure that the drive has sufficient space.
ECHO.
ECHO ****************************************************
PAUSE
GOTO fail
REM Start the USER ABORT FUNCTION
:usab
CLS
ECHO ****************************************************
ECHO.
ECHO User aborted the scrip please check why you did this
ECHO.
ECHO ****************************************************
PAUSE
goto fail
REM Start the FAIL FUNCTION
:fail
CLS
ECHO ****************************************************
ECHO.
ECHO Failure!
ECHO The operation was unsuccessfull please check errorcode
ECHO errorlevel
ECHO.
ECHO ****************************************************
PAUSE
goto exit
REM Start the SUCCESS FUNCTION
:success
CLS
ECHO ****************************************************
ECHO.
ECHO Success!
ECHO files can now be found at d:\backup\%date%\
ECHO.
ECHO ****************************************************
PAUSE
goto exit
:exit
CLS
ECHO ****************************************************
ECHO.
ECHO Success!
ECHO files can now be found at d:\backup\%date%\
ECHO.
ECHO ****************************************************
PAUSE
EXIT