Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Find all folders in working directory.

Author
Message
Goz3rr
16
Years of Service
User Offline
Joined: 27th Mar 2010
Location:
Posted: 1st Jun 2011 23:00
I will need to get a list of all the folders in a folder. Each of these folders will contain a ini file that will be loaded with styx. I saw the dir command but that doesn't return anything.

...
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Jun 2011 23:35
Try looking at the "Find next" command. There's a good example in the help file.

If you get stuck I'm sure I've seen a good example of searching through folder structures here somewhere, I'll take a look...

Goz3rr
16
Years of Service
User Offline
Joined: 27th Mar 2010
Location:
Posted: 2nd Jun 2011 00:11
Working using:



Thanks baxslash!

...
Goz3rr
16
Years of Service
User Offline
Joined: 27th Mar 2010
Location:
Posted: 2nd Jun 2011 00:12
Also, There always are two folders, '.' and '..', those are filtered out, and get file type() = 1 is to only get folders, not files

...

Login to post a reply

Server time is: 2026-07-11 02:36:42
Your offset time is: 2026-07-11 02:36:42