@echo off Title xcopybatch.bat REM updated 09/25/2018 REM Copy Directory Structure using xcopy Windows native command REM -------------------------- Enter Source Directory -------------------------- set "dir1=C:\SourceDir" REM -------------------------- Enter Dest Directory ---------------------------- set "dir2=C:\DestDir" REM ---------------------------------------------------------------------------- xcopy "%dir1%" "%dir2%" /t /e pause REM --------------------------------- Exit ------------------------------------- :end EXIT /B 0