Posted By
|
Message
|
lembi2001
Registered 01/04/2005
Points 608
|
17th February, 2009 at 12:59:45 -
I have a Tree Control object in my application which reads the contents of the C Drive and saves the output in a file. the problem is only the top two levels are read.
By that i mean i can see the Root of the C drive the program files folder, the windows folder and all the other folders i have there. in these folders i can only see the top level folder of each grouping. For example:
- C:
..-Program files
...Microsoft Games
...Microsoft Office
...Multimedia Fusion 2
..+Windows
I need to be able to see EVERY Subfolder and file on the Drive. Any ideas???
n/a
|
UrbanMonk BRING BACK MITCH
Registered 07/07/2008
Points 49667
|
18th February, 2009 at 00:30:07 -
The tree object only loads the files and sub folders of a directory when you click to open it, that way it can maintain a high frame rate and use as little system resources as possible.
If you want to save the entire folder structure of your hard drive, use the file-folder object.
Run a browsing loop, then on every item write it to a file, I will take longer, but its the only (good) way to do it.
http://www.jsoftgames.com/BrowseExample.zip
The code to save to a file is not there, but you could add it yourself!
n/a
|
Cecilectomy noPE
Registered 19/03/2005
Points 305
|
18th February, 2009 at 01:30:42 -
im not sure but you could possibly use the console object and the tree command in some fashion. i think you can use output from the console directly in the mmf app.
n/a
|
X_Sheep I had a custom rating before it was cool
Registered 01/03/2004
Points 1313
|
18th February, 2009 at 18:39:06 -
MMF2 Developer has an Explorer Object or whatever it's called, which is a Tree Control object that can go through the entire hard drive, and only loads the relevant subfolders and files when browsed.
a/n
|
UrbanMonk BRING BACK MITCH
Registered 07/07/2008
Points 49667
|
19th February, 2009 at 14:31:33 -
That's what he's trying to use, and I also tried it, and it didn't work. It only goes up two levels of subfolders.
Edited by UrbanMonk
n/a
|
|
|