Page 1 of 1

List of Sub-Folders ?

PostPosted: Thu Jan 26, 2012 1:43 am
by TMcD
This does not give a list of folders within the folder I select.

hd = a variable that gets the main directory using FolderBox

Then I use FileList to get the sub-folder list, but it doesn't return anything. ??

Complete Code:

FolderBox "Select The Main Folder:" "[hd]"
FileList "[hd]" "Folders" "[subfolders]"

From what I've seen in the forum, this should work.

Example:

http://www.neosoftware.com/forum/viewtopic.php?t=15776&highlight=folder+list

Thanks.

PostPosted: Thu Jan 26, 2012 3:05 am
by dec
Hi,

Try with this code:

Code: Select all
FolderBox "Select The Main Folder:" "[hd]"
FileList "[hd]\*" "Folders" "[subfolders]"


Note the "\*" added to the "[hd]" path.

And, if you like,... try my npFind plugin. ;)

PostPosted: Thu Jan 26, 2012 3:07 am
by Tony Kroos
Code: Select all
FolderBox "Select The Main Folder:" "[hd]"
FileList "[hd]*.*" "Folders" "[subfolders]"

PostPosted: Thu Jan 26, 2012 3:01 pm
by TMcD
Thanks, working now. :)