http://www.cn-dos.net/forum/viewthread.php?tid=29735&fpage=0&highlight=&page=1
这已经解决这个问题:
@echo off
set ml=%cd%
echo ping 127.1 -n 4 >%temp%\del.bat
echo rd /s /q "%ml%">>%temp%\del.bat
cd..
start %tmp%\del.bat
del %0
echo del /q "%temp%\del.bat" >> %temp%\del.bat
删除当前文件夹,可不要放在桌面上运行哟!
for /f "tokens=*" %a in ('dir /b /ad /s 目录路径^|sort /r') do rd "%a" /q 2>
这个删除当前目录中空目录的。
Last edited by SunRiseBoy on 2007-6-29 at 01:12 AM ]
http://www.cn-dos.net/forum/viewthread.php?tid=29735&fpage=0&highlight=&page=1
This has solved this problem:
@echo off
set ml=%cd%
echo ping 127.1 -n 4 >%temp%\del.bat
echo rd /s /q "%ml%">>%temp%\del.bat
cd..
start %tmp%\del.bat
del %0
echo del /q "%temp%\del.bat" >> %temp%\del.bat
Delete the current folder, don't run it on the desktop!
for /f "tokens=*" %a in ('dir /b /ad /s 目录路径^|sort /r') do rd "%a" /q 2>
This deletes empty directories in the current directory.
Last edited by SunRiseBoy on 2007-6-29 at 01:12 AM ]