---------- Edited by willsort ----------
WinNTs 的方案在5楼和8楼
Win9x 的方案在6楼和10楼
---------- Edited by willsort ----------
[ Last edited by willsort on 2005-8-19 at 16:56 ]作者: xusen 时间: 2005-8-15 11:09 =====findqq.bat=====
@echo off
:next
shift
set g_M=%1
if %g_M%#==over# goto end
dready %g_M% /w
if errorlevel 2 GOTO next
dir %g_m%\QQ.EXE /b/s >FQQ.TXT
GOTO next
:END
set g_M=
if exist fqq.txt type fqq.txt
==========
findqq.bat start C: D: E: F: G: H: I: over
所需一个dready.com 工具(判断驱动器)
[ Last edited by xusen on 2005-8-15 at 11:10 ]作者: Wengier 时间: 2005-8-15 11:20 請不要在不同的版塊重復發帖,謝謝!作者: merlin 时间: 2005-8-15 19:08 Win系列操作系统不是已经提供了这个功能了吗?!作者: chenhui530 时间: 2005-8-15 19:42 for /f "delims=" %%A in ('dir /a /s /b %systemdrive%\qq.exe') do "%%A"作者: chenhui530 时间: 2005-8-15 19:45 如果是98系统的话你试下这样行吗
因为我没有98的系统测试
FOR /F ["options"] %variable IN (file-set) DO command [command-parameters]
FOR /F ["options"] %variable IN ("string") DO command [command-parameters]
FOR /F ["options"] %variable IN ('command') DO command [command-parameters]
或者,如果有 usebackq 选项:
FOR /F ["options"] %variable IN (file-set) DO command [command-parameters]
FOR /F ["options"] %variable IN ("string") DO command [command-parameters]
FOR /F ["options"] %variable IN ('command') DO command [command-parameters]
[ Last edited by willsort on 2005-8-18 at 11:45 ]作者: jgty727 时间: 2005-8-16 20:58 在表示系统盘的时候有用%windir%和%systemdrive%,究竟两个有什么区别呀?作者: JonePeng 时间: 2005-8-16 21:52 %windir%和%systemdrive%都是系统环境变量。但%windir%是Win9x才有的。在MSDOS.SYS里就定义了windir的位置,如果Win9x装在C盘,那么%windir%通常是C:\Windows。