Hi everyone
Searched the site 4 some batch files 4 windows, found this from Skeelo ->
I really like the batch file, but my problem is this. The batch file just copies all existing files, not verifies if old ones have been delete. So if I delete a file in the original it still exists in the backup directory. Is there any command that can get past this?Code:@ECHO OFF REM Change NETDIR to include the network path you want your backups stored in set NETDIR=X:\Backups ECHO Backing up %1 to %NETDIR% >>backups.log date /t >> backups.log time /t >> backups.log echo +++>> backups.log ECHO =================================================== >>backups.log XCOPY %1 %NETDIR% /S /V /H /R /K /Y /C /I >>backups.log ECHO =================================================== >>backups.log ECHO Backup Completed >> backups.log ECHO +++ >>backups.log ECHO. >>backups.log ECHO. >>backups.log echo Backed up %1 to %NETDIR%
thanks
CH


Reply With Quote