Results 1 to 5 of 5

Thread: Get Folder Type

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    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.

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207
    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.

    Micah Carrick
    Visual Basic 6 SP5
    Visual Basic.NET
    Quixotix Software
    [email protected]
    Download QCM 1.0 - Intelligent ActiveX Control Management

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  4. #4
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73

    Thanks

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width