本帖最后由 回家路上 于 2015-8-3 23:48 编辑
- @echo off
- if exist "D:\test\test\" (
- del /f /s /q "D:\test\test\"
- for /f "delims=" %%i in ('dir /b /s "D:\test\test\"^|sort /r') do rd /s /q "%%i">nul
- )
- xcopy "C:\test\test\" "D:\test\test\" /s /e /h
- pause & exit /b
复制代码
|