Copying directories instead of files. xcopy sourcedir targetdir For copying all subdirectories too: xcopy sourcedir targetdir /s