Open Folder with Contents?

Just starting out? Need help? Post your questions and find answers here.
User avatar
J. Baker
Addict
Addict
Posts: 2192
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Open Folder with Contents?

Post 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
wayne1
User
User
Posts: 13
Joined: Sat Apr 26, 2003 4:23 am
Location: United States of America

Post 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)
Last edited by wayne1 on Fri Oct 17, 2003 4:58 am, edited 2 times in total.
Proteus
Enthusiast
Enthusiast
Posts: 113
Joined: Wed Sep 17, 2003 8:04 pm
Location: The Netherlands

Post by Proteus »

FileName$ = PathRequester(Title$, InitialPath$)
That one should do it. Looks like the variable has a slightly misleading name though...
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
User avatar
J. Baker
Addict
Addict
Posts: 2192
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post 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
Post Reply