Bobby Rachel
Bobby Rachel

Reputation: 473

Xcopy command in batch

xcopy %SOURCE% %DESTINATION% /E

Upvotes: 1

Views: 2066

Answers (2)

Endoro
Endoro

Reputation: 37569

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.

Upvotes: 1

LS_ᴅᴇᴠ
LS_ᴅᴇᴠ

Reputation: 11151

XCOPY %SOURCE% %DESTINATION% /E > NUL

If also want avoid error messages:

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

Upvotes: 2

Related Questions