|
I'm making a auto-installer script. I have not tested it yet, but if you know, will this work?
----------------------------------------------------------------------------------- Set SOD_C $ShortDriveCSize$ Set SOD_E $ShortDriveESize$ Set SOD_X $ShortDriveXSize$ Set SOD_Y $ShortDriveYSize$ Set SOD_Z $ShortDriveZSize$ Set SOD_F $ShortDriveFSize$ Set SOD_G $ShortDriveGSize$
Callscript _DisplayMessageBox "Please Wait..." Delay 2
AllowFormat 1 FORMAT C: FORMAT X: FORMAT Y: FORMAT Z: IF %SOD_E% == "0" FORMAT E: IF %SOD_F% == "0" FORMAT F: IF %SOD_G% == "0" FORMAT G: AllowFormat 0 -----------------------------------------------------------------------------------
OTHER STUFF:
How should I do it if I want it to do a special thing if F: / G: has a special size? (Guess ShortDriveFSize show size in MB)
will this work?
IF %SOD_G% > "10" GOTO hddsize_Gdrive IF %SOD_F% > "3000" GOTO hddsize_default IF %SOD_F% > "10" GOTO hddsize_original10 IF %SOD_F% == "0" GOTO hddsize_original08
|