Page 1 of 1

Open Folder with Contents?

Posted: Fri Oct 17, 2003 12:12 am
by J. Baker
I know that OpenFileRequester can get a file but how do you obtain a folder with it's contents? Thanks for any information. :D

Posted: Fri Oct 17, 2003 4:50 am
by wayne1
See the FileSystem.pb source for an example of how to get folder contents :)


if you just want to quickly display the contents of a folder:

Code: Select all

a=ShellExecute_(WindowID(), "open", "C:\Program Files\Outlook Express\", NULL, NULL, #SW_SHOWNORMAL)
;set this to a to valid path
MessageRequester("Information Open Folder","Return Value Is "+Str(a)+Chr(10)+"If greater than 32 it succeeded Else it failed.", 0)

Posted: Fri Oct 17, 2003 4:53 am
by Proteus
FileName$ = PathRequester(Title$, InitialPath$)
That one should do it. Looks like the variable has a slightly misleading name though...

Posted: Fri Oct 17, 2003 6:59 am
by J. Baker
Thanks guys! :D

I think PathRequester is what I am looking for. I'll have to try it in the morning. Thanks again. :D