BobGipson
asked on
Can Xcopy Corrupt The Files It Copies?
On Server 2000, I use xcopy in a batch file to make daily backups to an external HD of several directories. I am having problems with a single directory. The backup copies of the files are fine. However, for files created in Office 2007 on a Vista machine, the ORIGINAL files are corrupted after the xcopy. When I copy the backup files (created with xcopy) over the original files, all is OK again. Any ideas?
ASKER
Thank you for your reply.
The files are stored on the Server 2K in a share. The Vista machine and a couple other machines all with Office 2K7 access the files on the share. Xcopy runs on the Server 2K machine in a batch file every night. The entire directory is Xcopied to a USB external HD attached to the Server 2K. The Server 2K version of Xcopy is doing the copying. There is no Robocopy on the Server 2K machine. All the files were created in Office 2K7 Excel. Some were saved in native xlsx format and some were saved in Excel 2K3 xls format to allow broader access on older systems. I use the /F /D /V /E /C /I /H /R /Y switches with Xcopy. I don't think any of them should alter the original file.
Thanks for any help you can give.
The files are stored on the Server 2K in a share. The Vista machine and a couple other machines all with Office 2K7 access the files on the share. Xcopy runs on the Server 2K machine in a batch file every night. The entire directory is Xcopied to a USB external HD attached to the Server 2K. The Server 2K version of Xcopy is doing the copying. There is no Robocopy on the Server 2K machine. All the files were created in Office 2K7 Excel. Some were saved in native xlsx format and some were saved in Excel 2K3 xls format to allow broader access on older systems. I use the /F /D /V /E /C /I /H /R /Y switches with Xcopy. I don't think any of them should alter the original file.
Thanks for any help you can give.
ASKER
Preliminary research suggests that Server 2003 Robocopy may work on Server 2000. I will try this approach tomorrow and will keep you posted.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!!!
No file corruption by xcopy has been officially reported, so I can only assume that it may have to deal with some of the NTFS file properties and attributes that possibly are altered/reset by xcopy after copying. Which, in this hypothesis, would only matter to Vista and/or Office 2k7, not to earlier versions.
Have you tried using robocopy instead? Xcopy has been deprecated with Vista; maybe there was a reason for it.