• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

DOS; XCOPY FOR BACKUP

TiziteLayinLow

Senior member
i HAVE A BATCH FILE THAT LOOKS LIKE THIS

@echo off
echo ---Backup started on %Date% @ %Time% >> c:\docume~1\TECHBE~1\DESKTOP\MAINTA~1\BACKUP_log.txt
xcopy "C:\" G:\ /E /V /I /H /R /Y
echo *---Backup completed on %Date% @ %Time% >> c:\docume~1\TECHBE~1\DESKTOP\MAINTA~1\BACKUP_log.txt


c: - MY SYSTEM DRIVE
g: - MY USB2 BACKUP DRIVE

IT COPIES A FEW FILES AND THEN GIVES ME "SHARING VIOLATION"

ANY ADVICE IS APPRECIATED, MATT
 
What is the last file it copies before you get to that? You have a file in use that is causing it to crash. You can do one of two things. Put a /C switch in there and Xcopy will continue on even if you get an error. Or you can also use NTbackup to perform this function. This of course assumes you are running Win2k or up.
 
You must be running it in Windows' Command Prompt window. The violation occurs on many system files because Windows OS is using them. If you are formatted in NTFS, a DOS boot disk may not help much.

Rather than use XCopy - check out a good iamging/cloning program that has a separate boot system such as Acronis TrueImage 8 or Symantec Ghost 6.
 
Rather than use XCopy - check out a good iamging/cloning program that has a separate boot system such as Acronis TrueImage 8 or Symantec Ghost 6.

That requires a reboot, which other than just being annoying also makes it hard to automate.
 
xcopy sucks, use robocopy, its also a microsoft util and works very well with alot more options than xcopy and scripts very easily.
 
I like a little program called SecondCopy (shareware and WELL worth the small price)...www.secondcopy.com. You can send up endless profiles and copy files/folders whenever you tell it to. I'm glad I've been around since the DOS days and still know my commands, but just try Second Copy.
 
another vote for robocopy. its way more robust than xcopy and has a ton of custom settings. if you download robocopy make sure you get the latest version of "XP010"
 
Back
Top