Backing up specific file formats
Posted: 28 Nov 2013 06:46
I am trying to backup a bunch of *.id files, so I am using the batch file below.
My problem is that any other files/folders in the "IDFiles" folder are also copied over to the backup folder.
What can I do to backup only the *.id files?
Thanks
Code: Select all
SET xcopy=XCOPY /D /E /C /I /H /R /K /Y
SET idfiles="C:\Documents and Settings\%username%\IDFiles\*.id"
SET datadest="C:\Backup"
%xcopy% %idfiles% %datadest%\IDFiles
My problem is that any other files/folders in the "IDFiles" folder are also copied over to the backup folder.
What can I do to backup only the *.id files?
Thanks