freesoft00 当前离线
六级士官
@echo off for /f "tokens=2*" %%i in ('2^>nul reg query HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices /v "\DosDevices*"') do ( reg query HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices|findstr /i "%%j" ) pause复制代码
TOP
WHY 当前离线
上校
@echo off setlocal enabledelayedexpansion for /f "tokens=2*" %%i in ('2^>nul reg query HKLM\SYSTEM\MountedDevices /v "\DosDevices*"') do ( set "s=%%j" if "!s:~20!" == "" if not "!s:~19,1!" == "" echo !s! ) pause复制代码
评分人数
bailong360 (zhonghua)当前离线
上尉
findstr "^....................$" test.txt复制代码