Hello,
How can I get a folders type? ie a ordinary folders type is 'File Folder" and the history folder is 'History'.
If that makes sense then please help me.
many thanks,
Desire.
Printable View
Hello,
How can I get a folders type? ie a ordinary folders type is 'File Folder" and the history folder is 'History'.
If that makes sense then please help me.
many thanks,
Desire.
Well, there's no simple solution. However, I think that the location of each special folder is stored in the registry (not sure where though). You could read those values, compare them to the folder you're working on to determine whether or not it is a nromal folder.
I think, there are no such thing as folder type. Those folders like history are created by windows, and cannot be differed from any other folder, by any other OS. It's in the registry, yes - And thats all. The folder icon that looks like a history icon, can be changed, like any other folders icon. I have a iconeditor that does that.
try this...
Dim fso As New FileSystemObject
Dim typename As String
typename = fso.GetFolder("C:\WINDOWS\Favorites").Type
MsgBox typename
hope thats what your looking for
Hello,
Thanks everybody for you ideas and especially _bman_
whose sample code worked a treat, I believe that's the second you have helped me out this week so many thanks to you.
Desire.