- @echo off&setlocal enabledelayedexpansion
- (for %%a in (c d e f g h i j k l m n o p q r s t u v w x y z) do %%a: 2>nul&&for /r "\Program Files" /d %%b in (*) do (
- set b=%%b
- if /i "!b:~-7!"=="\333\44" echo %%b
- ))>>c:\1.txt
复制代码
- @echo off&setlocal enabledelayedexpansion
- (for /f "skip=1 delims=" %%a in ('wmic logicaldisk where DriveType^=3 get DeviceID') do (
- set a=%%a
- for /f "delims=" %%b in ('dir "!a:~0,2!\Program Files" /s/b/ad 2^>nul') do (
- set b=%%b
- if /i "!b:~-7!"=="\333\44" echo !b!
- )))>c:\1.txt
复制代码
[ 本帖最后由 hanyeguxing 于 2011-1-13 01:16 编辑 ] |