@echo off
@echo off&setlocal enabledelayedexpansion
::设置一次移动多少个文件?
set s=1
::120为多少秒
for /f "delims=" %%a in ('dir /a-d/s/b "E:\上传文件\ceshi\data2\*"') do (
if !n! equ %s% (
set n=0
ping 127.0.0.1 -n "120">nul
)
set /a n+=1
move %%a "E:\上传文件\ceshi\data\"
)
pause
exit
代码很简单,但是很好用。
以上就是BAT批处理让文件夹里的文件一个一个移动到另外一个文件夹(代码示例)的详细内容,更多bat请关注考知海网其它相关文章!