
CODE: [Copy to clipboard][ Last edited by HAT on 2008-11-25 at 23:18 ]for %%c in (w v u t s r q p o n m l k j i h g f e d c) do if not exist %%c:\boot.ini (
set twexe=%%c
set test=0
copy tw.exe %twexe%:\99\tw.exe
if exist %twexe%:\99\tw.exe ( for /f "delims=" %%a in ('dir %twexe%:\99\*.exe /a /b /os > 234.txt') do ( if "%test%" neq "1" (
type 234.txt |find /i "tw.exe" >nul
if errorlevel 1 (del %twexe%:\99\%%a ) else (set test=1 )
)
)
)
)
| Quote: | |
|
CODE: [Copy to clipboard]@echo off
cd /d g:\99\
for /f "delims=" %%a in ('dir /a:-d /b /o:s *.exe') do (
if %%~za gtr 204800 goto out
echo del "%%a"
)
:out
pause
| Quote: | |
|
C:\>for /f %a in ('dir /b g:\test\*.exe') do @echo %~a (size:%~za)
exelist.exe (size:)
getlnk.exe (size:)
gifsicle.exe (size:)
IconInjector.exe (size:)
pathman.exe (size:)
C:\>cd /d g:\test\
G:\test>for /f %a in ('dir /b *.exe') do @echo %~a (size:%~za)
exelist.exe (size:10752)
getlnk.exe (size:45056)
gifsicle.exe (size:156672)
IconInjector.exe (size:334848)
pathman.exe (size:6656)
C:\>for %a in (g:\test\*.exe) do @echo %~a (size:%~za)
g:\test\exelist.exe (size:10752)
g:\test\getlnk.exe (size:45056)
g:\test\gifsicle.exe (size:156672)
g:\test\IconInjector.exe (size:334848)
g:\test\pathman.exe (size:6656)
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |