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 個のフォルダーをコピーしたいと考えています。それ、どうやったら出来るの?使用できるオプションはありますか?
This batch file should skip 18 folders and use robocopy with each individual folder after that.
@echo off for /f "skip=18 delims=" %%a in (' dir /a-d /b ') do ( robocopy "%%a" "target folder" switches )