1
xcopy %SOURCE% %DESTINATION% /E
  • Using above command am copying folders and files from source to destination.
  • While copying, its showing source destination of the copied/copying file in the batch. I mean sys out is coming.
  • is it possible to block it?
  • Just copy has to work without showing anything in the batch

2 Answers 2

2
XCOPY %SOURCE% %DESTINATION% /E > NUL

If also want avoid error messages:

XCOPY %SOURCE% %DESTINATION% /E > NUL 2> NUL
Sign up to request clarification or add additional context in comments.

Comments

1

try this:

xcopy %SOURCE% %DESTINATION% /EQ

If you use >nul , you also get no over-writing message and Xcopy will wait for key pressing ... endless.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.