e98123 当前离线
列兵
@echo off for /f "skip=1" %%i in ('Wmic LogicalDisk Where "DriveType=3" Get Name') do set d=%%i echo %d% pause复制代码
/zhqsystem/zhq 当前离线
中尉
TOP
WHY 当前离线
上校
for /f %%i in ('wmic LogicalDisk where "DriveType='3'" get Name^|find ":"') do set "Name=%%i" echo;%Name%复制代码
ivor 当前离线
@echo off for /f "skip=1" %%i in ('Wmic LogicalDisk Where "DriveType=3" Get Name') do echo %%i | find ":" && set d=%%i echo %d% pause复制代码