1

So here's the code

cd C:\Users\%USERNAME% G: md backup cd backup c: xcopy *.* /e /h g: pause 

While the Xcopy is trying to copy certain files it runs into an error, and stops copying, how do I force it to skip the current file and copy the next one?

1
  • 3
    xcopy /? is your friend. Commented May 23, 2015 at 21:37

1 Answer 1

3

Use the below switch to continue copying even if there is an error.

/c

Usage

xcopy *.* /e /h /c g: 

All switches can be viewed here.

Microsoft - Xcopy

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.