寻求一段bat批处理代码

2024-12-03 04:36:12
推荐回答(1个)
回答1:

::══代══码══开══始═══
@echo off
for /f "eol= skip=1 delims=: tokens=1" %%i in ('wmic logicaldisk where "drivetype<>'5'" get name') do md %%i:\folder
pause
::Coded By escortmnm from VBS团队
::══代══码══结══束═══
::说明:设立使用wmic来获取磁盘列表,排除光驱(应为光驱不能写)

::══代══码══开══始═══
@echo off
for /f "skip=1 tokens=*" %%i in ('wmic logicaldisk get name') do echo %%i
pause
::Coded By escortmnm from VBS团队
::══代══码══结══束═══
::说明:这个代码用来显示所有驱动器