xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
2 Pages V  1 2 >  
Reply to this topicStart new topic
> Batch Scripts, Share them with others.
tweaqr
post Mar 27 2004, 05:16 PM
Post #1


X-S Genius
****

Group: Members
Posts: 780
Joined: 16-October 03
From: Okinawa Japan
Member No.: 68322
Xbox Version: v1.0



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

Please keep this thread clean, only post scripts.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tweaqr
post Mar 27 2004, 05:23 PM
Post #2


X-S Genius
****

Group: Members
Posts: 780
Joined: 16-October 03
From: Okinawa Japan
Member No.: 68322
Xbox Version: v1.0



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>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tweaqr
post Mar 27 2004, 05:29 PM
Post #3


X-S Genius
****

Group: Members
Posts: 780
Joined: 16-October 03
From: Okinawa Japan
Member No.: 68322
Xbox Version: v1.0



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>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Hectobleezy
post Mar 27 2004, 05:32 PM
Post #4


X-S X-perience
**

Group: Members
Posts: 452
Joined: 28-January 04
Member No.: 95777



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: Mar 27 2004, 05:34 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Dunny
post Apr 10 2004, 02:42 PM
Post #5


X-S Expert
***

Group: Members
Posts: 638
Joined: 13-May 03
Member No.: 37912



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

This post has been edited by Dunny: Apr 10 2004, 03:37 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sams_only
post Apr 13 2004, 09:50 AM
Post #6


X-S Enthusiast


Group: Members
Posts: 3
Joined: 2-April 04
Member No.: 111513



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>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sams_only
post Apr 13 2004, 09:56 AM
Post #7


X-S Enthusiast


Group: Members
Posts: 3
Joined: 2-April 04
Member No.: 111513



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mkjones
post Apr 13 2004, 10:11 AM
Post #8


X-S Freak
*****

Group: Members
Posts: 1427
Joined: 7-April 03
Member No.: 30843



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.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
coltxL2717
post Apr 19 2004, 04:54 AM
Post #9


X-S X-perience
**

Group: Members
Posts: 319
Joined: 28-December 03
From: Los Angeles, CA, USA
Member No.: 86050
Xbox Version: v1.3



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tweaqr
post Apr 21 2004, 02:34 AM
Post #10


X-S Genius
****

Group: Members
Posts: 780
Joined: 16-October 03
From: Okinawa Japan
Member No.: 68322
Xbox Version: v1.0



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>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tweaqr
post Apr 22 2004, 01:44 AM
Post #11


X-S Genius
****

Group: Members
Posts: 780
Joined: 16-October 03
From: Okinawa Japan
Member No.: 68322
Xbox Version: v1.0



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>


This post has been edited by tweaqr: Apr 22 2004, 01:46 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
grebulon
post Apr 22 2004, 06:50 AM
Post #12


X-S Senior Member
**

Group: Members
Posts: 210
Joined: 4-February 04
Member No.: 97619
Xbox Version: v1.2



Now all we need is a Format C script and an autoexec feature blink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
XboxNia
post Aug 3 2004, 12:10 AM
Post #13


X-S Senior Member
**

Group: Members
Posts: 226
Joined: 26-November 03
Member No.: 76935



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>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
XboxNia
post Aug 3 2004, 12:11 AM
Post #14


X-S Senior Member
**

Group: Members
Posts: 226
Joined: 26-November 03
Member No.: 76935



or if you want to change your skins everytime you reboot
http://forums.xbox-scene.com/index.php?showtopic=253621
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
XXXXXX
post Aug 6 2004, 05:49 AM
Post #15


X-S Young Member
*

Group: Members
Posts: 40
Joined: 6-June 04
Member No.: 123958
Xbox Version: v1.4



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 ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





2 Pages V  1 2 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 21st May 2013 - 05:43 PM