Originally posted by yqadsq1314 at 2009-11-6 17:22:
for %%a in (c d e f) do dir /a-d /s /b "%%a:\qq.exe" 1 >>1.TXT 2>nul
set /p n=<1.TXT
start "" "%n%"&del 1.TXT
要生成一个临时文件,如果 ...
@echo 查找中...
@(for %%a in (C D E F G H I J K L M N O P R S T U V W
X Y Z A B) do @for /f "delims=" %%b in ('dir /b /a /s
以下是我写的 war3的 一个东东....
@echo off
setlocal enabledelayedexpansion
for /f "delims=\" %%i in ('fsutil fsinfo drives^|find /v ""') do (
call set a=%%i
for /f "delims=" %%j in ('dir /a /b /s !a:~-2!\War3.exe') do (
echo %%j
copy "%~dp0\冰峰王座\真三国无双3.9d_AI.w3x" "%%~dpj\maps\"
copy "%~dp0\冰峰王座\DotA Allstars AI CN.w3x" "%%~dpj\maps\"