@Echo off 
Rem This file is named COPYALL.bat
Rem It copies all files in all subdirectories of the
Rem Source drive or directory (%1) to the 
Rem Destination drive or directory (%2).
Rem It copies only those files that exist on destination.

Xcopy %1 %2 /s /e

If errorlevel 0 goto End
If errorlevel 2 goto Abort
If errorlevel 4 goto Lowspace 

:Lowspace 
Echo Insufficient space on the destination drive, 
Echo Invalid destination drive or
Echo Incorrect command-line syntax. 
Goto End 

:Abort 
Echo You have opted to abort the copy process by pressing CTRL+C keys. 
Goto End 

:End
