:IsGPTrem 判定是否是GPT磁盘。echo list disk yiwuyun.txtfor /f skip=8 tokens=3 delims=B %%k in ('diskpart /s yiwuyun.txt') do ( set temp=%%k if !temp:~8,1!==* goto gpt)set gpt=falseecho Your disk is MBR disk!goto nogpt:gptset gpt=trueecho Your disk is GPT disk!:nogptif exist yiwuyun.txt del yiwuyun.txt || exit /b 1rem echo errorlevel is !errorlevel!exit /b 0