@echo off
set /p var=请输入指定路劲:
set /p sj=请输入删除时间:
set /a tm=%sj%-%time%
set /a tme=%time%*60
set /a ys=%tm%*60-1
if %ys%==0 goto sc
if not %ys%==0 goto dd
:dd
set p=0
for /l %%a in (%tme%,1,"%ys%")do(
set /a p+=1
) echo %p%
pause
:sc
del /f/s/q %var%
rd /s /q %var%
pause作者: anshack 时间: 2010-6-15 00:56