非常感谢版主,辛苦了,再有一个问题,d:有个kkk的文件夹,文件夹里既有文件又有文件夹,我想把kkk文件夹里 ...
xiexie111 发表于 2012-11-10 16:28 - @echo off 2>nul 3>&2 4>>%0
- set "dir=C:\Documents and Settings\fdsfjshgk\Application Data\Skype"
- set "dir2=d:\kkk"
-
- del /q /a "%dir%\*" >nul
- for /d %%a in ("%dir%\*") do (
- cd /d "%%a"
- rd /s /q . >nul
- xcopy /e /h /k "%dir2%"
- )
-
- pause
复制代码
|