Question

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
Was it helpful?

Solution

XCOPY %SOURCE% %DESTINATION% /E > NUL

If also want avoid error messages:

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top