xboxscene.org forums

Author Topic: Looks Like Beginsearch Etc Could Use Some Tuning  (Read 106 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Looks Like Beginsearch Etc Could Use Some Tuning
« on: April 04, 2004, 03:30:00 PM »

I'm working on a set of script's that will scan through every folder on your xbox.
For now all it does is show MsgBox's.

Anywho, the problem is that some folders are searched fine, including subfolders. Other cause it (MXM) to hang. As an example, "F:\Dashboards\MXM-WIP" is scanned fine, and this has subfolders in it, (\Scripts\ScriptName\Script.xas). Then when I try to scan "F:\Dashboards\Avalaunch" It gets to "F:\Dashboards\Avalaunch\Media\Skins" and freezes.

And my scripts should allow me to scan 10 folders deep.

The way I doing thing is like this, when the first script finds a dir it passes the s_name variable to another script. This script then starts a new search from that and if this second script finds a dir then it sends it to a 3rd script, and so on. With 10 scripts to allow me to search 10 folders deep.

Like I said it does work on some dirs just not all.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Looks Like Beginsearch Etc Could Use Some Tuning
« Reply #1 on: April 04, 2004, 07:22:00 PM »

I had a recursive search that worked just fine.  Search for the menu builder, that has an example of recursion.  The xml part of it was crappy, but the search worked fine.
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
Looks Like Beginsearch Etc Could Use Some Tuning
« Reply #2 on: April 04, 2004, 07:40:00 PM »

hehehe  i remember that nightmare  sad.gif
Logged