i've just written a batch file, which is just what i needed. but i'd like to compress the files using winRAR. my current script is
"
@Echo off
:: variables
set drive=F:\Backup
SET dateNtime="%date:~0,2%-%date:~3,2%-%date:~6,6%_%time:~0,2%-%time:~3,2%"
set backupcmd=xcopy /s /c /d /e /h /i /r /y
echo ### Backing up Music...
%backupcmd% "E:\Music" "%drive%\%dateNtime%\Music"
echo ### Backing up Favorites...
%backupcmd% "E:\Documents" "%drive%\%dateNtime%\Documents"
echo ### Backing up Torrents...
%backupcmd% "E:\Torrents" %drive%\%dateNtime%\Torrents
echo ### Backing up Pictures...
%backupcmd% "E:\Pictures" %drive%\%dateNtime%\Pictures
echo Backup Complete!
@pause
"
anyone know how i would get winRAR to compress the backup files?
thanks