mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
parent
09ee18c27e
commit
1201e429b4
@ -50,7 +50,7 @@ rem wmic pagefile
|
||||
|
||||
rem 获取主硬盘 id
|
||||
rem vista pe 没有 wmic,因此用 diskpart
|
||||
(echo select vol %VolIndex% & echo list disk) | diskpart | find "* " > X:\disk.txt
|
||||
(echo select vol %VolIndex% & echo list disk) | diskpart | find "* Disk " > X:\disk.txt
|
||||
for /f "tokens=3" %%a in (X:\disk.txt) do (
|
||||
set "DiskIndex=%%a"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user