以下为演示代码,如果可行,则把 echo 语句换成 del 语句即可:
@echo off
for %%i in (D:\35.RMVB D:\35OK.RMVB) do call set var=%%var%% %%~zi
call :comp_size %var%
pause
goto :eof
:comp_size
if %1 equ %2 echo 即将删除 D:\35.RMVB
goto :eof
Last edited by namejm on 2006-12-26 at 10:05 PM ]
The following is the demonstration code. If it works, just replace the echo statement with the del statement:
@echo off
for %%i in (D:\35.RMVB D:\35OK.RMVB) do call set var=%%var%% %%~zi
call :comp_size %var%
pause
goto :eof
:comp_size
if %1 equ %2 echo The file D:\35.RMVB is about to be deleted
goto :eof
Last edited by namejm on 2006-12-26 at 10:05 PM ]