@echo off
for /f "skip=1" %%a in ('wmic logicaldisk where "drivetype=2" get caption')do echo 你电脑上的可移动设备有:%%a
for /f "skip=1" %%a in ('wmic logicaldisk where "drivetype=3" get caption')do echo 你电脑上的硬盘分区有:%%a
for /f "skip=1" %%a in ('wmic logicaldisk where "drivetype=5" get caption')do echo 你电脑上的光驱有:%%a
pause
原帖由 opp 于 2008-3-1 11:18 AM 发表
cmd下好办,删除所有本地磁盘里的1.bak文件。
for /f "skip=1" %a in ('wmic logicaldisk where "drivetype=3" get caption') do @del/f/s/q/a "%a\1.bak"