Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个目录,其中有 36 个子文件夹。我想使用 robocopy 复制最后 18 个文件夹。我怎么做?有什么我可以使用的选项吗?
此批处理文件应跳过 18 个文件夹,然后对每个单独的文件夹使用 robocopy。
@echo off for /f "skip=18 delims=" %%a in (' dir /a-d /b ') do ( robocopy "%%a" "target folder" switches )