File Explorer Directories only

Blitz3D Forums/Blitz3D Programming/File Explorer Directories only

_PJ_(Posted 2009) [#1]
Tehre's a couple of really useful 'File Requesters' in the Code archives/Userlibs pages but these are all concerning actual Files (No doubt, the most common and useful method!)

However, I'm wondering if anyone knows how to 'do' one of the Explorer windows that returns a Directory only?

For example, when selecting 'Installation locations'?


Guy Fawkes(Posted 2009) [#2]
no idea.

sorry =/


Guy Fawkes(Posted 2009) [#3]
u could try using treeview ;)


Warner(Posted 2009) [#4]
I think you need SHBrowseForFolder.
http://msdn.microsoft.com/en-us/library/bb762115%28VS.85%29.aspx
Maybe it is included in blitzsys.dll?
http://www.blitzbasic.com/Community/posts.php?topic=56500


Flemmonk(Posted 2009) [#5]
Maybe you're after something in the 'Common Dialog' library (on windows that is).


xlsior(Posted 2009) [#6]
RequestDir$( text$,initial_path$="" )

EDIT: Nevermind, that's Blitzmax, didn't notice that this was the B3D forum.


Matty(Posted 2009) [#7]
The FileType command lets you know how to determine if a 'file' is a folder or a file. If you are writing your own file requester perhaps it may come in useful?


_PJ_(Posted 2009) [#8]
Well, writing my own file requesteers got too klunky, so I went for Blitzsys then later discovered the more specific and suitable functions by MPZ [a=http://www.blitzbasic.com/codearcs/codearcs.php?code=916]HERE[/a]

I will have a look through Blitzsys again, but otherwise, thanks for the info, and yeah seems very likely it will be in the comdlg32.dll but I doubt I'd be able to write my own decls. had enough trouble with the GetDeviceCaps() one :)

Perhaps if I ecplain a little more in why I want this.
Basically I have functions set up that on passing in the sirectory path, will scan and process all the valid files within that directory. Kinda like a batch processing idea. Alltermnatively, there is a single file browser (taken from the userlib code I HAVE got).
I just want to find the best / easiest (for the user) way to select the directory for the batch proessing.


_PJ_(Posted 2009) [#9]
Yay!

Thank you, Warner - I did find it in Blitsys (example 23 away from the other fiel requester examples ;) )

Problem solved!