Jump to content


Photo

Batch Scripts


  • Please log in to reply
28 replies to this topic

#1 tweaqr

tweaqr

    X-S Genius

  • Members
  • PipPipPipPip
  • 780 posts
  • Location:Okinawa Japan
  • Xbox Version:v1.0

Posted 27 March 2004 - 05:16 PM

If you have written a batch script that others would find useful post it here.

Please keep this thread clean, only post scripts.


#2 tweaqr

tweaqr

    X-S Genius

  • Members
  • PipPipPipPip
  • 780 posts
  • Location:Okinawa Japan
  • Xbox Version:v1.0

Posted 27 March 2004 - 05:23 PM

Clear Cache

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

CODE

<List Text="Clear Cache" Sort="Off" Batch="True">
<Item Action="Delete" Arg1="C:\Items.xml">Delete Items.xml</Item>
<Item Action="Delete" Arg1="E:\UDATA\9e115330\">Delete UX Gamesave</Item>
</List>

#3 tweaqr

tweaqr

    X-S Genius

  • Members
  • PipPipPipPip
  • 780 posts
  • Location:Okinawa Japan
  • Xbox Version:v1.0

Posted 27 March 2004 - 05:29 PM

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

<List Text="Format Menu" Sort="Off" Auto="On" Password="Xbox">
<Item Action="Format" Arg1="F" Password="">Format F Drive</Item>
<Item Action="Format" Arg1="G" Password="">Format G Drive</Item>
<Item Action="Format" Arg1="X" Password="">Format X Drive</Item>
<Item Action="Format" Arg1="Y" Password="">Format Y Drive</Item>
<Item Action="Format" Arg1="Z" Password="">Format Z Drive</Item>
</List>


and replace it with
CODE

 <List Text="Format Menu" Sort="Off" Auto="On" Password="Xbox">
  <List Text="Format C Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format C">This will Format your C Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format C">Do you REALLY want to Format your C Drive?</Item>
   <Item Action="MessageBox" Arg1="Format C">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="C"></Item>
   <Item Action="MessageBox" Arg1="Format C">Format Complete.</Item>
  </List>
  <List Text="Format E Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format E">This will Format your E Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format E">Do you REALLY want to Format your E Drive?</Item>
   <Item Action="MessageBox" Arg1="Format E">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="E"></Item>
   <Item Action="MessageBox" Arg1="Format E">Format Complete.</Item>
  </List>
  <List Text="Format F Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format F">This will Format your F Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format F">Do you REALLY want to Format your F Drive?</Item>
   <Item Action="MessageBox" Arg1="Format F">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="F"></Item>
   <Item Action="MessageBox" Arg1="Format F">Format Complete.</Item>
  </List>
  <List Text="Format G Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format G">This will Format your G Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format G">Do you REALLY want to Format your Z Drive?</Item>
   <Item Action="MessageBox" Arg1="Format G">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="G"></Item>
   <Item Action="MessageBox" Arg1="Format G">Format Complete.</Item>
  </List>
  <List Text="Format X Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format X">This will Format your X Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format X">Do you REALLY want to Format your X Drive?</Item>
   <Item Action="MessageBox" Arg1="Format X">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="X"></Item>
   <Item Action="MessageBox" Arg1="Format X">Format Complete.</Item>
  </List>
  <List Text="Format Y Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format Y">This will Format your Y Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format Y">Do you REALLY want to Format your Y Drive?</Item>
   <Item Action="MessageBox" Arg1="Format Y">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="Y"></Item>
   <Item Action="MessageBox" Arg1="Format Y">Format Complete.</Item>
  </List>
  <List Text="Format Z Drive" Sort="Off" Batch="True">
   <Item Action="AskUser" Arg1="Format Z">This will Format your Z Drive \nDo you want to continue?</Item>
   <Item Action="AskUser" Arg1="Format Z">Do you REALLY want to Format your Z Drive?</Item>
   <Item Action="MessageBox" Arg1="Format Z">This is a password protected item. You need to enter a password to continue.</Item>
   <Item Action="" password="Xbox"></Item>
   <Item Action="Format" Arg1="Z"></Item>
   <Item Action="MessageBox" Arg1="Format Z">Format Complete.</Item>
  </List>
 </List>

#4 Hectobleezy

Hectobleezy

    X-S X-perience

  • Members
  • PipPip
  • 452 posts

Posted 27 March 2004 - 05:32 PM

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


Edited by Hectobleezy, 27 March 2004 - 05:34 PM.


#5 Dunny

Dunny

    X-S Expert

  • Members
  • PipPipPip
  • 638 posts

Posted 10 April 2004 - 02:42 PM

finally I can let my mates softmod their own consoles! biggrin.gif

CODE

<List Text="Install Softmod" Sort="Off" Batch="True">
 <Item Action="UnZip" Arg1="E:\UDATA\4541000d\000000000000\temp\catfish.zip" Arg2="C:\fonts">Fonts</Item>
 <Item Action="UnZip" Arg1="E:\UDATA\4541000d\000000000000\temp\pbl.zip" Arg2="E:\">PBL</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox.xtf" Arg2="C:\fonts\Xbox.bak">Rename1</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox Book.xtf" Arg2="C:\fonts\Xbox Book.bak">Rename2</Item>
</List>
<List Text="Uninstall Softmod" Sort="Off" Batch="True">
 <Item Action="Delete" Arg1="C:\fonts\bert.xtf">Delete</Item>
 <Item Action="Delete" Arg1="C:\fonts\ernie.xtf">Delete0</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox.bak" Arg2="C:\fonts\Xbox.xtf">Rename1</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox Book.bak" Arg2="C:\fonts\Xbox Book.xtf">Rename2</Item>
 <Item Action="Delete" Arg1="E:\bg.jpg">Delete04</Item>
 <Item Action="Delete" Arg1="E:\boot.cfg">Delete05</Item>
 <Item Action="Delete" Arg1="E:\Config.xml">Delete06</Item>
 <Item Action="Delete" Arg1="E:\default.xbe">Delete07</Item>
 <Item Action="Delete" Arg1="E:\font.jpg">Delete08</Item>
 <Item Action="Delete" Arg1="E:\msdash.xbe">Delete09</Item>
 <Item Action="Delete" Arg1="E:\unleashx.xbe">Delete10</Item>
 <Item Action="Delete" Arg1="E:\Apps\">Delete Apps folder</Item>
 <Item Action="Delete" Arg1="E:\Skins\">Delete Skins folder</Item>
 <Item Action="Delete" Arg1="E:\Bioses\">Delete Bios folder</Item>
</List>


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

Edited by Dunny, 10 April 2004 - 03:37 PM.


#6 sams_only

sams_only

    X-S Enthusiast

  • Members
  • 3 posts

Posted 13 April 2004 - 09:50 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>

#7 sams_only

sams_only

    X-S Enthusiast

  • Members
  • 3 posts

Posted 13 April 2004 - 09:56 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.

#8 mkjones

mkjones

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,427 posts

Posted 13 April 2004 - 10:11 AM

QUOTE (Dunny @ Apr 10 2004, 04:42 PM)
finally I can let my mates softmod their own consoles! biggrin.gif

CODE

<List Text="Install Softmod" Sort="Off" Batch="True">
 <Item Action="UnZip" Arg1="E:\UDATA\4541000d\000000000000\temp\catfish.zip" Arg2="C:\fonts">Fonts</Item>
 <Item Action="UnZip" Arg1="E:\UDATA\4541000d\000000000000\temp\pbl.zip" Arg2="E:\">PBL</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox.xtf" Arg2="C:\fonts\Xbox.bak">Rename1</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox Book.xtf" Arg2="C:\fonts\Xbox Book.bak">Rename2</Item>
</List>
<List Text="Uninstall Softmod" Sort="Off" Batch="True">
 <Item Action="Delete" Arg1="C:\fonts\bert.xtf">Delete</Item>
 <Item Action="Delete" Arg1="C:\fonts\ernie.xtf">Delete0</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox.bak" Arg2="C:\fonts\Xbox.xtf">Rename1</Item>
 <Item Action="Rename" Arg1="C:\fonts\Xbox Book.bak" Arg2="C:\fonts\Xbox Book.xtf">Rename2</Item>
 <Item Action="Delete" Arg1="E:\bg.jpg">Delete04</Item>
 <Item Action="Delete" Arg1="E:\boot.cfg">Delete05</Item>
 <Item Action="Delete" Arg1="E:\Config.xml">Delete06</Item>
 <Item Action="Delete" Arg1="E:\default.xbe">Delete07</Item>
 <Item Action="Delete" Arg1="E:\font.jpg">Delete08</Item>
 <Item Action="Delete" Arg1="E:\msdash.xbe">Delete09</Item>
 <Item Action="Delete" Arg1="E:\unleashx.xbe">Delete10</Item>
 <Item Action="Delete" Arg1="E:\Apps\">Delete Apps folder</Item>
 <Item Action="Delete" Arg1="E:\Skins\">Delete Skins folder</Item>
 <Item Action="Delete" Arg1="E:\Bioses\">Delete Bios folder</Item>
</List>


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.



#9 coltxL2717

coltxL2717

    X-S X-perience

  • Members
  • PipPip
  • 319 posts
  • Location:Los Angeles, CA, USA
  • Interests:Girl friend, skateboarding, music, movies, xbox
  • Xbox Version:v1.3

Posted 19 April 2004 - 04:54 AM

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.

#10 tweaqr

tweaqr

    X-S Genius

  • Members
  • PipPipPipPip
  • 780 posts
  • Location:Okinawa Japan
  • Xbox Version:v1.0

Posted 21 April 2004 - 02:34 AM

Backup:
CODE

<List Text="Create Backup" Sort="Off" Batch="True">
<Item Action="Copy" Arg1="C:\config.xml" Arg2="E:\Backup\" />
<Item Action="Copy" Arg1="C:\evoxdash.xbe" Arg2="E:\Backup\" />
</List>


Restore:
CODE

<List Text="Restore Backup" Sort="Off" Batch="True">
<Item Action="Copy" Arg1="E:\Backup\" Arg2="C:\" />
</List>


#11 tweaqr

tweaqr

    X-S Genius

  • Members
  • PipPipPipPip
  • 780 posts
  • Location:Okinawa Japan
  • Xbox Version:v1.0

Posted 22 April 2004 - 01:44 AM

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

<List Text="Format X,Y,Z" Sort="Off" Auto="On" Batch="True">
<Item Action="Format" Arg1="X"></Item>
<Item Action="Format" Arg1="Y"></Item>
<Item Action="Format" Arg1="Z"></Item>
</List>

Edited by tweaqr, 22 April 2004 - 01:46 AM.


#12 grebulon

grebulon

    X-S Senior Member

  • Members
  • PipPip
  • 210 posts
  • Xbox Version:v1.2

Posted 22 April 2004 - 06:50 AM

Now all we need is a Format C script and an autoexec feature blink.gif

#13 XboxNia

XboxNia

    X-S Senior Member

  • Members
  • PipPip
  • 226 posts

Posted 03 August 2004 - 12:10 AM

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>

#14 XboxNia

XboxNia

    X-S Senior Member

  • Members
  • PipPip
  • 226 posts

Posted 03 August 2004 - 12:11 AM

or if you want to change your skins everytime you reboot
http://forums.xbox-s...howtopic=253621

#15 XXXXXX

XXXXXX

    X-S Young Member

  • Members
  • Pip
  • 40 posts
  • Xbox Version:v1.4

Posted 06 August 2004 - 05:49 AM

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 ?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users