xboxscene.org forums

OG Xbox Forums => Dashboard Forums => Official MediaXMenu (MXM) Forum => Topic started by: m3tro on February 22, 2006, 06:40:00 AM

Title: Need Little Help With Script
Post by: m3tro on February 22, 2006, 06:40:00 AM
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
Title: Need Little Help With Script
Post by: m3tro on February 22, 2006, 07:02:00 AM
One more thing, is it possible to make an % bar... some way?
So he/she who installs know the progress!