本帖最后由 newswan 于 2021-8-14 17:46 编辑
- @echo off
- setlocal enableDelayedExpansion
-
- set _LF_=^&echo
- set _CL_= sel disk 0
- set _CL_=!_CL_! !_LF_! detail disk
- set _CL_=!_CL_! !_LF_! list part
-
- echo !_CL_!
- echo %_CL_%
-
-
- echo ----1
- for /f "usebackq tokens=* delims=" %%Z in (`
- cmd /c "(echo %_CL_%) | diskpart"
- `) do (
- echo %%Z
- )
- echo ----2
- for /f "usebackq tokens=* delims=" %%Z in (`
- cmd /c "(echo !_CL_!) | diskpart"
- `) do (
- echo %%Z
- )
复制代码 找到了以前的 |