@echo offnet use z: \\192.168.1.1\c: for /f "tokens=*" %%i in ('dir/b/od/a-d z:\a') do set bd=%%~tiif %bd:~,10%==%date:~,10% echo a目录备份成功。