@echo off Title robocopybatch.bat REM updated 09/22/2018 REM Copy Directory Structure using robocopy REM Set robocopy path if required REM set path="C:\robocopy Folder\";%path% REM -------------------------- Enter Source Directory -------------------------- set "dir1=C:\SourceDir" REM -------------------------- Enter Dest Directory ---------------------------- set "dir2=C:\DestDir" REM ---------------------------------------------------------------------------- robocopy "%dir1%" "%dir2%" /e /xf * pause REM --------------------------------- Exit ------------------------------------- :end EXIT /B 0