raozhao2008 (x10,&5?)当前离线
六级士官
namejm (闭关中)当前离线
批处理代码写手
荣誉版主
TOP
pusofalse 当前离线
@echo off for /r %%a in (abc) do if exist %%a copy 1.inf %%~dpa&set "_path=%%~dpa" echo qwert>>2.txt if /i "%_path%" equ "c:\a\b\c\" copy 123.bat "%_path%"复制代码
zqz0012005 (smile)当前离线
假装是个高手
for /f "tokens=* delims=驱动器: " %%a in ('fsutil fsinfo drives ^| find /v ""') do @echo %%a复制代码
for /f "skip=1" %%a in ('wmic logicaldisk where "not MediaType=11" get name') do @echo %%a复制代码