rem ======= 删除目录 7天前目录 =========
forfiles /P "E:\Folder" /S /D -7 /C "Cmd /C If @isdir==TRUE rd /s /q @Path"
rem ======= 删除 7天前文件 =========
forfiles /p "E:\Folder" /s /m *.* /c "cmd /c Del @path" /d -7
rem ======= 删除中的空目录 =========
for /f "delims=" %%a in ('dir /s /b /ad "E:\Folder"') do (rd /q "%%a" 2>nul && echo 已删除 "%%a")
net use \\192.168.1.1\E$\Folder /U:.\Username password
d:
cd "E:\Folder"
xcopy *.* \\192.168.1.1\E$\Folder