|
- Section
- SetOutPath "$TEMP"
- FileOpen $R0 "disk.txt" w
- FileWrite $R0 '\
- select disk $R1$\r$\n\
- clean$\r$\n\
- convert gpt$\r$\n\
- create partition primary size=$R2$\r$\n\
- format quick fs=ntfs label="Windows RE tools"$\r$\n\
- assign letter="T"$\r$\n\
- create partition efi size=$R3$\r$\n\
- rem == Note: for Advanced Format Generation One drives, change to size=260.$\r$\n\
- $\r$\n\
- format quick fs=fat32 label="System"$\r$\n\
- assign letter="S"$\r$\n\
- create partition msr size=$R4$\r$\n\
- create partition primary$\r$\n\
- format quick fs=ntfs label="Windows"$\r$\n\
- assign letter="W"$\r$\n'
- FileClose $R0
- SectionEnd
复制代码
|
|