This section introduces the new X3 Scripting Interface. Team Xecuter has developed a command line scripting procedure that lets users create custom scripts to automate the installation of BIOS updates, applications, harddrives, and much more... Some of the things on this page are unconfirmed. This section is not meant as a guided tutorial but as more of an introduction.
Command: | Description: | Usage: | Example: |
% | Two of these are used as a goto label. The label itself is just a marker and doesn't get processed. This is used to skip to the appropriate section of a script. It is used in conjunction with the goto command. | %wait% sleep 1000 | |
# | Comments. Text after one of these does not get processed. | sleep 1000 # sleeps for 1 second | |
copy | Copies the specified file to the target hard drive location | copy <filename> <target> | copy X3_install.ini z:\ |
delete | Deletes a file, if it can be deleted. Path optional if the script is executing from the same directory. | delete <filename> | delete e:\X3_1959.bin delete X3_1959.bin |
download | Downloads a file from the specified server to the specified path. | tdownload <filename> <path> | download z:\test.gif http://www.abc.com/hp2.gif |
echo | Sends a specified text message to the screen | echo <text> | echo Everything installed. |
eject | Ejects the DVD/CD | eject | |
eeprom_backup | Places a copy of the XBOX EEPROM in slot 1 on the X3 | eeprom_backup | |
flashbios | Flashes the specified bios (bios or backup) with the specified file | flashbios <bios/backup> <filename> | flashbios backup flashbios_v303.bin flashbios bios X3_1959.bin |
format | Formats the specified drive, if possible. | format <drive> | format f: |
goto %<label>% |
goto skips to the specified gotolabel value in the script | goto script2 ... %script2% | |
hdd_lock | Locks the XBOX / Hard Drive, if possible. | hdd_lock | |
hdd_unlock | Unlocks the XBOX / Hard Drive. | hdd_unlock | |
if if exist <filename> <command> |
These if statements can execute commands if a v1.6 motherboard exists, if a v1.6 motherboard doesn't exist, or if a file exists. (Try "if !exist <command>" and let me know if that works.) | if v1.6 <command> if !v1.6 <command> |
if v1.6 flashbios bios X3_1959_v16plus.bin if !v1.6 eject if exist <filename> <command> if exist z:\temp.jpg goto script2 |
launch | Launches the specified .xbe file | launch <filename> | launch e:\default.xbe |
mkdir (unconfirmed) | Make a directory | mkdir <directory> | mkdir e:\apps |
mbr | Creates a new partition table and master boot record | mbr | |
network | Configure network settings. This is required to use the network to download. If this is not specified, net-based commands will use the XBOX's default settings. (Hoping the network was already configured.) | network = <static/dhcp>; <ip adress>;<netmask>; <gateway>;<DNS> |
network = static; 192.168.1.190; 255.255.255.0; 192.168.1.1; 195.159.0.100 |
preparedrive | Does a complete format on a drive, for new drives, this is the one you want to run. You do not get a warning so BE CAREFUL ! | preparedrive | |
runscript | Runs the specified X3CL script, if located, but it won't return to the original script. | runscript <filename> | runscript z:/script4.ini |
sleep | Script stops doing anything for the specified number of milliseconds. | sleep <ms> | sleep 1000 |
unzip | Copies the specified zipfile to the XBOX hard drive and unpacks it to the target location. | unzip <filename> <target dir>
(Does it automatically create the directories if they are needed?) | unzip dashboard.zip c:\ |
eeprom_backup # might as well backup the eeprom while we are at it preparedrive # prepare a new harddrive network = static;192.168.0.10;255.255.255.0;192.168.0.1;195.159.0.100 # netcfg download c:\Avalaunch.zip http://192.168.0.2/Avalaunch-v0.49.3.zip #d/l Ava. unzip c:\Avalaunch.zip c:\ # Unzip Avalaunch delete c:\Avalaunch.zip # Delete the download hdd_lock # Try to lock the XBOX / HDD # Count Down echo Done! Launching Avalaunch in 5... wait 1000 echo 4... wait 1000 echo 3... wait 1000 echo 2... wait 1000 echo 1... wait 1000 echo 0... wait 1000 echo -1... Just kidding. Launching Avalaunch Now. launch c:\avalaunch.xbe #launch avalaunch
Copyright ©2005 Tor Nichols. All Rights Reserved.