Results 1 to 9 of 9

Thread: Folders

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Is it possible to hide a directory on the disk??

    / CyberCarsten

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    Of course! All you need to do is set the folder's properties using the GetAttr Statement if you want to find out if it is currently hidden, and then using the SetAttr Statement to set them.

    This example straight out of the vb4 help file:
    Code:
    SetAttr "TESTFILE", vbHidden	' Set hidden attribute.
    SetAttr "TESTFILE", vbHidden + vbReadOnly	' Set hidden and read-only 
    
    ' attributes.

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    The problem is, sometimes the user chooses to be able to view hidden directories. In these cases, you have to perform a very special and unique trick to hide them completely.

    If you need sample code, well, so do I!

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



  4. #4

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Will this also work on the directory and not just the files???

    Thanx guys!!

    / CyberCarsten

  5. #5
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    Yes, my method should; however according to Yonatan, the only way I know how to make a folder hidden from 'show hidden file' type settings, is by deleting it... hehe

  6. #6

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    OK..the folder i invissible, but still accesible...
    I wanted it to be like Magic Folders...

    / CyberCarsten

  7. #7
    Lively Member
    Join Date
    Jul 2001
    Location
    New Hampshire, USA
    Posts
    127

    Old.

    This is an ancient thread!

  8. #8
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294

    Dont do that

    Dont reply to old posts. People get confused.
    Just a suggestion.

  9. #9
    Lively Member
    Join Date
    Jul 2001
    Location
    New Hampshire, USA
    Posts
    127

    how is this confusing?

    hmm?

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