rem @echo off
setlocal enabledelayedexpansion
for %%F in ("D:test\*.*") do (
set /a "fileCount+=1"
set /a "remainder=fileCount %% 2"
if !remainder! == 0 (
move "%%F" "D:test\0"
) else (
move "%%F" "D:test\1"
)
endlocal
0 件のコメント:
コメントを投稿