xboxscene.org forums

OG Xbox Forums => Dashboard Forums => Official UnleashX Forum => Topic started by: tweaqr on March 27, 2004, 10:19:00 AM

Title: Batch Scripts
Post by: tweaqr on March 27, 2004, 10:19:00 AM
If you have written a batch script that others would find useful post it here.

Please keep this thread clean, only post scripts.
Title: Batch Scripts
Post by: tweaqr on March 27, 2004, 09:23:00 AM
Clear Cache

A simple script for deleting the UnleashX gamesave and Items.xml.

CODE


Delete Items.xml
Delete UX Gamesave

Title: Batch Scripts
Post by: tweaqr on March 27, 2004, 09:29:00 AM
Format Menu with warnings

Format menu for anyone worried about accidentally formatting a drive. It will prompt you for a password for the format menu and each drive. as well as asking twice if you want to format, the password is Xbox.

install instructions

open config.xml in notpad

find
CODE


Format F Drive
Format G Drive
Format X Drive
Format Y Drive
Format Z Drive



and replace it with
CODE

 
 
   This will Format your C Drive \nDo you want to continue?
   Do you REALLY want to Format your C Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 
   This will Format your E Drive \nDo you want to continue?
   Do you REALLY want to Format your E Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 
   This will Format your F Drive \nDo you want to continue?
   Do you REALLY want to Format your F Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 
   This will Format your G Drive \nDo you want to continue?
   Do you REALLY want to Format your Z Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 
   This will Format your X Drive \nDo you want to continue?
   Do you REALLY want to Format your X Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 
   This will Format your Y Drive \nDo you want to continue?
   Do you REALLY want to Format your Y Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 
   This will Format your Z Drive \nDo you want to continue?
   Do you REALLY want to Format your Z Drive?
   This is a password protected item. You need to enter a password to continue.
   
   
   Format Complete.
 

 

Title: Batch Scripts
Post by: Hectobleezy on March 27, 2004, 10:35:00 AM
Here is what i did to your clear cache script tweaqr,

<List Text="Clear Cache" Sort="Off" Batch="True">

<Item Action="AskUser" Arg1="Confirmation">The following file will be deleted:\n"C:\Items.xml"\n\nThe following folder will be deleted:\n"E:\UDATA\9e115330\n\n\nDo you really want to clear your cache?"</Item>

<Item Action="Delete" Arg1="C:\Items.xml">Delete Items.xml</Item>
<Item Action="Delete" Arg1="E:\UDATA\9e115330\">Delete UX Gamesave</Item>

Item Action="MessageBox" Arg1=”Completed”>Your cache has been deleted.\n\nPlease Reboot before attempting to clear\nthe cache again.\n\nPress OK to continue.</Item>

</List



edit: i was trying to put a reboot comand in ther, but couldnt get it to work

 

This post has been edited by Hectobleezy on Mar 27 2004, 06:37 PM
Title: Batch Scripts
Post by: Dunny on April 10, 2004, 08:18:00 AM
finally I can let my mates softmod their own consoles! biggrin.gif

CODE


 Fonts
 PBL
 Rename1
 Rename2


 Delete
 Delete0
 Rename1
 Rename2
 Delete04
 Delete05
 Delete06
 Delete07
 Delete08
 Delete09
 Delete10
 Delete Apps folder
 Delete Skins folder
 Delete Bios folder


I think its correct but it wont delete the 3 folders, Bioses, Apps and Skins ... Ive tried it countless ways and keep getting an error?  uhh.gif
Title: Batch Scripts
Post by: sams_only on April 13, 2004, 03:53:00 AM
I didn't post it since it's nothing special.

My xml for deleting cache & auto reboot:

<List Text="Clear Cache" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Confirmation">Clear UnleashX Cache?</Item>
<Item Action="Delete" Arg1="c:\items.xml"></Item>
<Item Action="Delete" Arg1="e:\udata\9e115330\"></Item>
<Item Action="MessageBox" Arg1="Completed">Caches Deleted. Press OK to Reboot.</Item>
<Item Action="Restart"></Item>
</List>
Title: Batch Scripts
Post by: sams_only on April 13, 2004, 03:59:00 AM
I could be wrong about this, but I think if you have "<Item Action="Restart">Reboot</Item>" listed twice in the xml, one of the menu would be blank. So perhaps you should have a different name. It's like this:

NORMAL REBOOT MENU:
<Item Action="Restart">Reboot</Item>

USED FOR AUTO BOOT (USE DIFFERENT NAME)
<Item Action="Restart">Reboot Xbox</Item>
or just use blank
<Item Action="Restart"></Item>

Someone borrowed my Xbox so I can't test to confirm this.
Title: Batch Scripts
Post by: mkjones on April 13, 2004, 03:47:00 AM
QUOTE (Dunny @ Apr 10 2004, 04:42 PM)
finally I can let my mates softmod their own consoles! biggrin.gif

CODE


 Fonts
 PBL
 Rename1
 Rename2


 Delete
 Delete0
 Rename1
 Rename2
 Delete04
 Delete05
 Delete06
 Delete07
 Delete08
 Delete09
 Delete10
 Delete Apps folder
 Delete Skins folder
 Delete Bios folder


I think its correct but it wont delete the 3 folders, Bioses, Apps and Skins ... Ive tried it countless ways and keep getting an error?  uhh.gif

DUDE! Thats kinda like the package I have just developed smile.gif

Its in the Dashboard Exploit forum wink.gif take a look. Its in testing at the moment.

Title: Batch Scripts
Post by: coltxL2717 on April 18, 2004, 10:57:00 PM
Hey, I wrote a script that toggles between the  font exploit audio exploit. Here it is:

QUOTE
<List Text="Turn on Font Exploit/Turn Off Audio Exploit" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Turn on Font Exploit">Do you really want to turn on the exploits?</Item>
<Item Action="Rename" Arg1="c:\fonts\XBox Book.xtf" Arg2="c:\fonts\XBox Book.bak">Rename XBox Book</Item>
<Item Action="Rename" Arg1="c:\fonts\XBox.xtf" Arg2="c:\fonts\XBox.bak">Rename XBox</Item>
<Item Action="Rename" Arg1="C:\fonts\Bert.bak" Arg2="C:\fonts\Bert.xtf">Rename Bert</Item>
<Item Action="Rename" Arg1="C:\Ernie.bak" Arg2="C:\Ernie.xtf">Rename Ernie</Item>
<Item Action="Rename" Arg1="C:\Bert.bak" Arg2="C:\Bert.xtf">Rename Bert</Item>
<Item Action="Rename" Arg1="C:\Ernie.bak" Arg2="C:\Ernie.xtf">Rename Ernie</Item>
<Item Action="Rename" Arg1="c:\XBox Book.xtf" Arg2="c:\XBox Book.bak">Rename XBox Book</Item>
<Item Action="Rename" Arg1="c:\XBox.xtf" Arg2="c:\XBox.bak">Rename XBox</Item>
<Item Action="Rename" Arg1="E:\tdata\fffe0000\music\st.db" Arg2="E:\tdata\fffe0000\music\st.hak">Rename ST</Item>
<Item Action="Rename" Arg1="E:\tdata\fffe0000\music\st.org" Arg2="E:\tdata\fffe0000\music\st.db">Rename ST</Item>
</List>



<List Text="Turn off Font Exploit/Turn On Audio Exploit" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Turn on Font Exploit">Do you really want to turn on the exploits?</Item>
<Item Action="Rename" Arg1="c:\fonts\XBox Book.bak" Arg2="c:\fonts\XBox Book.xtf">Rename XBox Book</Item>
<Item Action="Rename" Arg1="c:\fonts\XBox.bak" Arg2="c:\fonts\XBox.xtf">Rename XBox</Item>
<Item Action="Rename" Arg1="C:\fonts\Bert.xtf" Arg2="C:\fonts\Bert.bak">Rename Bert</Item>
<Item Action="Rename" Arg1="C:\Ernie.xtf" Arg2="C:\Ernie.bak">Rename Ernie</Item>
<Item Action="Rename" Arg1="C:\Bert.xtf" Arg2="C:\Bert.bak">Rename Bert</Item>
<Item Action="Rename" Arg1="C:\Ernie.xtf" Arg2="C:\Ernie.bak">Rename Ernie</Item>
<Item Action="Rename" Arg1="c:\XBox Book.bak" Arg2="c:\XBox Book.xtf">Rename XBox Book</Item>
<Item Action="Rename" Arg1="c:\XBox.bak" Arg2="c:\XBox.xtf">Rename XBox</Item>
<Item Action="Rename" Arg1="E:\tdata\fffe0000\music\st.db" Arg2="E:\tdata\fffe0000\music\st.org">Rename ST</Item>
<Item Action="Rename" Arg1="E:\tdata\fffe0000\music\st.hak" Arg2="E:\tdata\fffe0000\music\st.db">Rename ST</Item>
</List>


I haven't tested it yet, on the account of my broken hdd, but if someone coud test this and tell me the results I would be greatly appreciativce.
Title: Batch Scripts
Post by: tweaqr on April 20, 2004, 08:37:00 PM
Backup:
CODE


   
   



Restore:
CODE


   

Title: Batch Scripts
Post by: tweaqr on April 21, 2004, 07:47:00 PM
Format X,Y,Z:
This will format the X,Y, and Z drives. Note there is no warrning or conformation.
If you use the Clear Cache script you can just add the three item commands betwean the list tags to that.
 
CODE


   
   
   



This post has been edited by tweaqr on Apr 22 2004, 02:49 AM
Title: Batch Scripts
Post by: grebulon on April 22, 2004, 12:26:00 AM
Now all we need is a Format C script and an autoexec feature  blink.gif
Title: Batch Scripts
Post by: XboxNia on August 02, 2004, 06:13:00 PM
This Is Tweaqr and sams_only together as tweaqr said


<List Text="Clear Cache" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Confirmation">Clear UnleashX Cache?</Item>
<Item Action="Delete" Arg1="c:\items.xml"></Item>
<Item Action="Delete" Arg1="e:\udata\9e115330\"></Item>
<Item Action="Format" Arg1="X"></Item>
<Item Action="Format" Arg1="Y"></Item>
<Item Action="Format" Arg1="Z"></Item>
<Item Action="MessageBox" Arg1="Completed">Caches Deleted. Press OK to Reboot.</Item>
<Item Action="Restart"></Item>
</List>
Title: Batch Scripts
Post by: XboxNia on August 02, 2004, 06:14:00 PM
or if you want to change your skins everytime you reboot
http://forums.xbox-scene.com/index.php?showtopic=253621
Title: Batch Scripts
Post by: XXXXXX on August 05, 2004, 11:52:00 PM
hey tweaqr your format with warnings menu scipt doesnt work for me,
i done it exactly how you said and ive also tried everything else i can think of.
I am not new to xml so im pretty familiar with what im doing, and i have only just started using batch scripts. i had no trouble with the cache and backup/restore scripts and i even tweaked them to my own liking without a single hitch.
but i cant for the life of me get the format menu with warnings to work,
i even tried making sure the particular partition had files on it to be deleted/formatted and it still wouldnt work. the messages work but when it
gets to the actual format command it fails....
these batch scripts are pretty cool i would also like to know where i can get more info about it so i can create more, or maybe there are other scripts around somewhere, point me in the right direction pls ?
Title: Batch Scripts
Post by: velocityboy on August 06, 2004, 07:01:00 AM
Is there a way to write a script which will go through my games folders and delete all the dashupdate.xbe and update.xbe files?
Title: Batch Scripts
Post by: zman519 on August 06, 2004, 06:18:00 PM
This is a script i made for the MP library map in halo. You will need to zip up the map and put it in the maps folder in F:\games\Halo\maps\ or wut ever your path is same gos for the script path ( Arg1 ) i havin't tested if the copy command is faster or not but ziping it the way i like it just keeps things smaller.


CODE

Loading...
Map Cache Loaed.................... Now load Halo go to multiplayer  
and pick Boarding Action. Now you are ready to Frag sum MotherFuckers in The Library! Thaks for playing Halo Have a nice day :)                                          Map  Made by The Swamp Fox  
www.halomods.com
         



This post has been edited by zman519: Aug 7 2004, 01:19 AM
Title: Batch Scripts
Post by: pdottz on August 07, 2004, 11:50:00 PM
zman, awesome script but I just spent an hour trying to figure out why my config file wasn't working after putting in your script, its because you forgot the "</item> " closing tag after halomods.com. actually my friend found it for me.

but still awesome script.

This post has been edited by pdottz: Aug 8 2004, 06:57 AM
Title: Batch Scripts
Post by: zman519 on August 08, 2004, 06:04:00 PM
Dam sorry people.  You see i wuz at my friends wen i posted it.  and it  wuz back at my house so my bruther sent it over AIM i must of not copyed & paste it all.
CODE

   Loading...
   Map Cache Loaed.................... Now load Halo go to multiplayer and pick Boarding Action. Now you are ready to Frag sum MotherFuckers it The Library! Thaks for playing Halo Have a nice day :)                                          Map  Made by The Swamp Fox www.halomods.com
    

Title: Batch Scripts
Post by: tweaqr on November 20, 2004, 04:09:00 PM
User profiles:

http://forums.xbox-scene.com/index.php?sho...9&hl=power+user
Title: Batch Scripts
Post by: aaron1974 on April 02, 2005, 12:31:00 AM
QUOTE(aaron1974 @ Apr 1 2005, 05:01 PM)
heheh got bored so did a little playing and now i have the games(not on the xbox)to have an game icon and preview vid,its just as if the games were all on the hdd,man i luv this dash,big thanx to sr_sparky for showing me the light and unleash of cource for making the dash,here is what i have now just incase others wish to have it also

CODE


Please Insert "Multidisk #40" DVD,press NO to cancel or YES to continue.




make a Games Preview folder on E:(or were ever u want)and have all the game preview pic's in there own folders and same with the preview vids,then put all the preview.xmv/wmv files and .png files in their own folder for each game,a little editing and happy days
enjoy wink.gif
*



ORIGINAL IDEA : djcluerec

ORIGINAL CODE : sr_sparky

thought this would be a good place to post this,thanx again guys for the idea cool.gif
Title: Batch Scripts
Post by: Gleapsite on May 19, 2005, 12:48:00 PM
CODE
   
       
      
      
      
       

       
      
      
      
       

    


So for Halo 2 there is a modified map pack called "Allied."  In the installation you modify mainmenu.map and shared.map,  this is all fine and well untill you start playing system link w/ unmoded boxes (possibly has to do with the H2 patch)

Since those are the only two integral files that are modified I wrote a script to switch between default and allied.

SETUP:
drop the unmodded *.map files into f:\games\Halo 2\maps\unmoded\
and the modded *.map files into f:\games\Halo 2\maps\moded\
edit config.xml and add in the above code to your menu and enjoy.
Title: Batch Scripts
Post by: Gleapsite on May 19, 2005, 01:16:00 PM
Sorry guys,

I forgot to mention, clear your cache [X,Y,Z,  look to the first few posts for a script] before running those, else it'll pull the *.map from the cache.
Title: Batch Scripts
Post by: anjilslaire on May 28, 2005, 12:12:00 AM
QUOTE(XboxNia @ Aug 2 2004, 06:21 PM)
This Is Tweaqr and sams_only together as tweaqr said
<List Text="Clear Cache" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Confirmation">Clear UnleashX Cache?</Item>
<Item Action="Delete" Arg1="c:\items.xml"></Item>
<Item Action="Delete" Arg1="e:\udata\9e115330\"></Item>
<Item Action="Format" Arg1="X"></Item>
<Item Action="Format" Arg1="Y"></Item>
<Item Action="Format" Arg1="Z"></Item>
<Item Action="MessageBox" Arg1="Completed">Caches Deleted. Press OK to Reboot.</Item>
<Item Action="Restart"></Item>
</List>
*



So, if I wanted to clear the xbox cache (e:\cache\***, x: y: z: ), would it be

<List Text="Clear Cache" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Confirmation">Clear Xbox Cache?</Item>
<Item Action="Delete" Arg1="e:\cache\"></Item>
<Item Action="Format" Arg1="X"></Item>
<Item Action="Format" Arg1="Y"></Item>
<Item Action="Format" Arg1="Z"></Item>
<Item Action="MessageBox" Arg1="Completed">Caches cleared. Press OK to Reboot.</Item>
<Item Action="Restart"></Item>
</List>

Or do I have the syntax for e:\cache wrong?
Thanks
Title: Batch Scripts
Post by: tyler on November 03, 2005, 06:42:00 AM
Hey, can any of you guys help me out here:

http://forums.xbox-scene.com/index.php?showtopic=455800

aaron1974 in particular I guess smile.gif

Thanks
Title: Batch Scripts
Post by: X_Cheat3R on December 02, 2005, 05:19:00 PM
i know this is an OLD post, but this is what im looking for...

will unleashx run a script like this:

<item action="copy" arg1="http://www.xbox-scen...e.com/item.zip" arg2="f:\">Download Zip File</item>

any suggestions?  I'm trying to get it to download a zip file from a web server???

THANKS!
 ph34r.gif
][X][
Title: Batch Scripts
Post by: Jezz_X on December 02, 2005, 07:18:00 PM
QUOTE(X_Cheat3R @ Dec 3 2005, 11:26 AM) View Post

i know this is an OLD post, but this is what im looking for...

will unleashx run a script like this:

<item action="copy" arg1="http://www.xbox-scene.com/item.zip" arg2="f:\">Download Zip File</item>

any suggestions?  I'm trying to get it to download a zip file from a web server???

THANKS!
 ph34r.gif
][X][

Nope apart from the built stuff for downloading skins and gamesaves scripts can't access the internet
Title: Batch Scripts
Post by: beefmaster on March 30, 2006, 09:09:00 AM
is there a script anywhere to backup game saves to memorycard? thanks
Title: Batch Scripts
Post by: Jezz_X on March 30, 2006, 02:17:00 PM
QUOTE(beefmaster @ Mar 31 2006, 01:40 AM) View Post

is there a script anywhere to backup game saves to memorycard? thanks

It would be easy enough to make but would need to have one for each game and when you can just do it in the Gamesave Manager in unleashX why bother