HQ NETWORK:   XBOX ONE |  XBOX 360 |  AIDELUXE HQ Network: 8,622 | Guests: 2619 | Members: 0 


   Current Location: Forums please help. trying to use core ftp   |   need help on an og XBOX modchip   |   Replacing A Broken HDD   |   Help Identifying: 2ND Hand XB Chip   |   A box without the X?   |   20 years ago...   |   No HD   |   Can I reduce F: partition to increase E:?   |   (Solved) Game's crash if custom music is played   |   New Game - Fursan al-Aqsa - Knights of al-Aqsa Mosque   |   
  Home | Active Topics | CD/DVD Media | Downloads | Forums | Feedback | Games | HardDrives | Homebrew | My Profile | ModChips | Reviews | Search | SoftMods | Tutorials

Xbox Forums

Discuss all aspects of the original Xbox Console in our Interactive Xbox Forums..

Get Xbox Game Pass Ultimate
Xbox-Hq.Com :: View topic - prog to empty cache folder
Xbox-Hq.Com Forum Index -> Xbox Programming
Post new topic Reply to topic    
 prog to empty cache folder View previous topic :: View next topic  
 
 
 
 
hakawanna_B
Xbox-HQ Newbie
Xbox-HQ Newbie

Xbox Version: ver 1.6
Modded: softmod + 40 gig hdd

Joined: Jul 15, 2006
Posts: 7

Post Posted: Sat Jul 15, 2006 11:34 am   
Post subject: prog to empty cache folder
Reply with quote
 
hi all i'm a newbie in coding and i want to make a program that empties the cache folder. i have no idea what apps i need. i would like it to automaticly empty the cache folder when u click on it. thank you in advance 4 ur help.


View user's profile Send private message Visit poster's website
 
 
 
 
j8994
Moderator
Moderator


Joined: Feb 05, 2006
Posts: 1853
Location: Tennessee, USA

Post Posted: Sat Jul 15, 2006 4:30 pm   
Post subject:
Reply with quote
 
first u need a leal copy of the xdk, and visual studio, or you can use the unleasx dash and script it ofr thatpurose
_________________
Please post all PC Questions at PC-HQ.com


View user's profile Send private message
 
 
 
 
hakawanna_B
Xbox-HQ Newbie
Xbox-HQ Newbie

Xbox Version: ver 1.6
Modded: softmod + 40 gig hdd

Joined: Jul 15, 2006
Posts: 7

Post Posted: Sat Jul 15, 2006 11:15 pm   
Post subject:
Reply with quote
 
ok how do i script it into unleash x


View user's profile Send private message Visit poster's website
 
 
 
 
AngelosDracul
V.I.P. Lifetime

Xbox Version: ver 1.6
Modded: softmod + 40 gig hdd

Joined: Mar 24, 2005
Posts: 1755

Post Posted: Sun Jul 16, 2006 2:26 am   
Post subject:
Reply with quote
 
Python scripting via XBMC might be a bit easier. Check out the xbmc site:

www.xboxmediacenter.de

and see if they have anything on python scripting and such. I know using pythons has made my modding habit much more enjoyable.

_________________
"That which does not kill you, only makes you stronger."

XBox - 1.1, Samsung 616t DVD-ROM, 65GBWD 7200RPM Drive, Logitech Wireless


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
hakawanna_B
Xbox-HQ Newbie
Xbox-HQ Newbie

Xbox Version: ver 1.6
Modded: softmod + 40 gig hdd

Joined: Jul 15, 2006
Posts: 7

Post Posted: Sun Jul 16, 2006 10:02 am   
Post subject:
Reply with quote
 
does anybody know where there is a list for batch script commands that i could look at i am trying to create a folder to replace the E:\cache\ after i delete it.

this is what i put into the config.xml

<List Text="Clear Cache" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Confirmation">Clear the Cache?</Item>
<Item Action="Delete" Arg1="e:\cache\"></Item>
<Item Action="New Folder" 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 Deleted. Press OK to Reboot.</Item>
<Item Action="Restart"></Item>

im not sure what to use for new folder any help would be great thanx


View user's profile Send private message Visit poster's website
 
 
 
 
Greven
Xbox-Hq Genius

Xbox Version: Xbox V1.6
Modded: Xecuter 3 CE

Joined: Jan 19, 2006
Posts: 2755
Location: Calgary, Alberta, Canada

Post Posted: Thu Jul 20, 2006 8:11 am   
Post subject:
Reply with quote
 
You could kind of hack it and make a .zip with the folder in it and extract the zip. Something like:

<Item Action="UnZip" Arg1="E:\cache_folder.zip" Arg2="E:\">

And just have the zip contain an empty folder.

Just a note though, you can delete that folder without recreating it with no problems, you don't have to just empty it.

_________________

Hotswap|HDD Upgrade|X3 Guide


View user's profile Send private message Visit poster's website AIM Address MSN Messenger
 
 
 
 
Greven
Xbox-Hq Genius

Xbox Version: Xbox V1.6
Modded: Xecuter 3 CE

Joined: Jan 19, 2006
Posts: 2755
Location: Calgary, Alberta, Canada

Post Posted: Thu Jul 20, 2006 8:43 am   
Post subject:
Reply with quote
 
I actually liked the idea so much I implemented it myself:

<List Text="Empty Cache" Sort="Off" Batch="True">
<Item Action="AskUser" Arg1="Format">Are you sure you want to wipe all the cache files? The system will reboot after the cache is wiped.</Item>
<Item Action="Delete" Arg1="E:\CACHE"></Item>
<Item Action="Format" Arg1="X">Format X Drive</Item>
<Item Action="Format" Arg1="Y">Format Y Drive</Item>
<Item Action="Format" Arg1="Z">Format Z Drive</Item>
<Item Action="Restart"></Item>
</List>

_________________

Hotswap|HDD Upgrade|X3 Guide


View user's profile Send private message Visit poster's website AIM Address MSN Messenger
 
 
 
 
hakawanna_B
Xbox-HQ Newbie
Xbox-HQ Newbie

Xbox Version: ver 1.6
Modded: softmod + 40 gig hdd

Joined: Jul 15, 2006
Posts: 7

Post Posted: Thu Jul 20, 2006 8:44 pm   
Post subject:
Reply with quote
 
yeah i know i can delete it with out recreating it now after some mucking around but if u delete it and its already been deleted u get an error. I softmod for people at work on the side and i want to make it bug free otherwise i'll be getting phone calls all the time reporting errors. thanks for all your help. i will implement the zip idea.

on another note is their somewhere i can learn all the syntax and commands for unleash x batch script.


View user's profile Send private message Visit poster's website
 
 
 
 
hakawanna_B
Xbox-HQ Newbie
Xbox-HQ Newbie

Xbox Version: ver 1.6
Modded: softmod + 40 gig hdd

Joined: Jul 15, 2006
Posts: 7

Post Posted: Fri Jul 21, 2006 8:27 pm   
Post subject:
Reply with quote
 
ok so i tried to implement the zip idea but it starts the teext editor for some reason why would that be


View user's profile Send private message Visit poster's website
 
 
 
 
Greven
Xbox-Hq Genius

Xbox Version: Xbox V1.6
Modded: Xecuter 3 CE

Joined: Jan 19, 2006
Posts: 2755
Location: Calgary, Alberta, Canada

Post Posted: Fri Jul 21, 2006 9:08 pm   
Post subject:
Reply with quote
 
Can you paste the markup that your using?

[EDIT]
I used the following and it worked fine for me:
Code:
      <List Text="Empty Cache" Sort="Off" Batch="True">
         <Item Action="AskUser" Arg1="Format">Are you sure you want to wipe all the cache files? The system will reboot after the cache is wiped.</Item>
         <Item Action="Delete" Arg1="E:\CACHE"></Item>
         <Item Action="Format" Arg1="X">Format X Drive</Item>
         <Item Action="Format" Arg1="Y">Format Y Drive</Item>
         <Item Action="Format" Arg1="Z">Format Z Drive</Item>
         <Item Action="Unzip" Arg1="F:\CACHE.zip" Arg2="E:\"></Item>
         <Item Action="Restart"></Item>
      </List>

_________________

Hotswap|HDD Upgrade|X3 Guide


View user's profile Send private message Visit poster's website AIM Address MSN Messenger
 
Display posts from previous:   
  Post new topic  
 
  Reply to topic  
|
 All times are GMT | Page 1 of 1
Jump to:  
 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
 


Get Xbox Game Pass Ultimate