command line - how to copy only selected folders using robocopy? -
i have directory in there 36 subfolders. want copy last 18 folders using robocopy. how do that? there option can use?
this batch file should skip 18 folders , use robocopy each individual folder after that.
@echo off /f "skip=18 delims=" %%a in (' dir /a-d /b ') ( robocopy "%%a" "target folder" switches )
Comments
Post a Comment