本帖最后由 buyiyang 于 2023-5-19 16:11 编辑
- @echo off
- fltmc >nul||mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close)&&exit
- (for /f "tokens=2 delims==" %%i in ('wmic diskdrive get Index /value') do (
- echo,select disk %%i
- echo,detail disk
- )) | diskpart | findstr "ID:"
- pause
复制代码
|