Auto-commit: 2025-10-31 08:55:48
This commit is contained in:
29
SDA/DiskpartWindows10/Disk.au3
Normal file
29
SDA/DiskpartWindows10/Disk.au3
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#include <MsgBoxConstants.au3>
|
||||
|
||||
Local $iPID = RunWait("winpeinit", "", @SW_SHOWMAXIMIZED)
|
||||
|
||||
|
||||
Local $sVar = RegRead("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control", "PEFirmwareType")
|
||||
|
||||
|
||||
If $sVar = 1 Then
|
||||
MsgBox($MB_SYSTEMMODAL, "Diskpart","BIOS",3)
|
||||
Local $iPID = RunWait("diskpart /s bios.txt", "", @SW_SHOWMAXIMIZED)
|
||||
Else
|
||||
MsgBox($MB_SYSTEMMODAL, "Diskpart","UEFI",3)
|
||||
Local $iPID = RunWait("diskpart /s UEFI.txt", "", @SW_SHOWMAXIMIZED)
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user