xboxscene.org forums

Pages: [1] 2

Author Topic: Batch Scripts  (Read 414 times)

tweaqr

  • Archived User
  • Sr. Member
  • *
  • Posts: 336
Batch Scripts
« 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.
Logged

tweaqr

  • Archived User
  • Sr. Member
  • *
  • Posts: 336
Batch Scripts
« Reply #1 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

Logged

tweaqr

  • Archived User
  • Sr. Member
  • *
  • Posts: 336
Batch Scripts
« Reply #2 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.
 

 

Logged

Hectobleezy

  • Archived User
  • Sr. Member
  • *
  • Posts: 270
Batch Scripts
« Reply #3 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
Logged

Dunny

  • Archived User
  • Full Member
  • *
  • Posts: 220
Batch Scripts
« Reply #4 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
Logged

sams_only

  • Archived User
  • Newbie
  • *
  • Posts: 2
Batch Scripts
« Reply #5 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>
Logged

sams_only

  • Archived User
  • Newbie
  • *
  • Posts: 2
Batch Scripts
« Reply #6 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.
Logged

mkjones

  • Archived User
  • Hero Member
  • *
  • Posts: 810
Batch Scripts
« Reply #7 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.

Logged

coltxL2717

  • Archived User
  • Full Member
  • *
  • Posts: 170
Batch Scripts
« Reply #8 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.
Logged

tweaqr

  • Archived User
  • Sr. Member
  • *
  • Posts: 336
Batch Scripts
« Reply #9 on: April 20, 2004, 08:37:00 PM »

Backup:
CODE


   
   



Restore:
CODE


   

Logged

tweaqr

  • Archived User
  • Sr. Member
  • *
  • Posts: 336
Batch Scripts
« Reply #10 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
Logged

grebulon

  • Archived User
  • Full Member
  • *
  • Posts: 149
Batch Scripts
« Reply #11 on: April 22, 2004, 12:26:00 AM »

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

XboxNia

  • Archived User
  • Newbie
  • *
  • Posts: 21
Batch Scripts
« Reply #12 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>
Logged

XboxNia

  • Archived User
  • Newbie
  • *
  • Posts: 21
Batch Scripts
« Reply #13 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
Logged

XXXXXX

  • Archived User
  • Newbie
  • *
  • Posts: 27
Batch Scripts
« Reply #14 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 ?
Logged
Pages: [1] 2