回复 17# freesoft00
10楼就是- @echo off
- setlocal enabledelayedexpansion
- for /f "tokens=1*" %%a in ('fsutil fsinfo drives ^|find ":\"') do (
- echo %%b
- for %%i in (%%b) do set a=%%i & echo format !a:~,2!
- )
- pause
复制代码
- @echo off
- setlocal enabledelayedexpansion
- for /f "tokens=1*" %%a in ('fsutil fsinfo drives ^|find ":\"') do (
- for %%i in (%%b) do set a=%%i & set "s=!s!!a:~,2! " & echo !a:~,2!
- )
- echo !s:~,-1!
- pause
复制代码
|