How do I copy files by date, *based on year only, (2010-2021), from %source% to associated folder %target%\Archive %year%?
for /l %%a in (2010,1,2021) do( for %%b in (%source%) do ( xcopy /d:**/**/%%a "%source%\*.imp" %target%\Archive %%a) https://stackoverflow.com/questions/66682771/batch-file-copy-files-by-year-yyyy March 18, 2021 at 07:35AM
没有评论:
发表评论