Backup current user profile

Script to backup the current users main data to directory that script is started from.

backup_current_user.bat
@echo off
:: variables
mkdir %computername%
cd %computername%
set drive=%cd%
set backupcmd=xcopy /s /c /d /e /h /i /r /y
echo ***Warning this will take a lot of space!!***
echo ### Caculating free space...Please wait
setLocal EnableDelayedExpansion
set /a value=0
set /a sum=0
set /a size=0
set /a subb=0
set userspace=%userprofile%
FOR /R %userspace% %%I IN (*) DO (
set /a value=%%~zI/1024
set /a sum=!sum!+!value!
set /a subb=!sum!/1024
set /a size=!subb!+400
)
echo Please check that you have at least: !size! MB 
echo in Free Space for user %username%
echo Press CTRL+C if you dont have enough space to quick this program
pause
echo ### Backing up Desktop...
%backupcmd% "%USERPROFILE%\Desktop" "%drive%\Desktop"
echo ### Backing up My Documents...
%backupcmd% "%USERPROFILE%\My Documents" "%drive%\My Documents"
echo ### Backing up My Music...
%backupcmd% "%USERPROFILE%\My Music" "%drive%\My Music"
echo ### Backing up My Pictures...
%backupcmd% "%USERPROFILE%\My Pictures" "%drive%\My Pictures"
echo ### Backing up My Videos...
%backupcmd% "%USERPROFILE%\My Videos" "%drive%\My Videos"
echo ### Backing up Favorites...
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\Favorites"
echo ### Backing up email and address book (Outlook Express)...
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Address Book" "%drive%\Address Book"
%backupcmd% "%USERPROFILE%\Local Settings\Application Data\Identities" "%drive%\Outlook Express"
echo ### Backing up email and contacts (MS Outlook)...
%backupcmd% "%USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook" "%drive%\Outlook"
 
echo ### Backing up the Registry...
if not exist "%drive%\Registry" mkdir "%drive%\Registry"
if exist "%drive%\Registry\regbackup.reg" del "%drive%\Registry\regbackup.reg"
regedit /e "%drive%\Registry\regbackup.reg"
 
:: use below syntax to backup other directories...
:: %backupcmd% "...source directory..." "%drive%\...destination dir..."
 
echo Backup Complete!
@pause