Results 1 to 12 of 12

Thread: Hidding Files

  1. #1

    Thread Starter
    Lively Member DeBauer's Avatar
    Join Date
    May 2001
    Location
    Mako Reactor #7
    Posts
    123

    Question Hidding Files

    I tried hidding an html file my program uses and after I hide it using

    Call SetAttr("m.html",vbHidden)

    It gives me a runtime error, and when I take that command out it works fine. How can I get around this?


    -thanks

  2. #2
    What's the runtime error you get?

  3. #3
    Matthew Gates
    Guest
    Surely, your not using just "m.html", you specified a path, correct?


    filburt1: Is it me or is in every post, your title and avatar different?

  4. #4
    Originally posted by Matthew Gates
    Surely, your not using just "m.html", you specified a path, correct?
    ...such as App.Path & "\m.html"...
    Last edited by filburt1; Oct 20th, 2001 at 04:11 PM.

  5. #5
    Originally posted by Matthew Gates
    filburt1: Is it me or is in every post, your title and avatar different?
    Mere coincidence.

  6. #6

    Thread Starter
    Lively Member DeBauer's Avatar
    Join Date
    May 2001
    Location
    Mako Reactor #7
    Posts
    123
    Yea im using just "m.html". It hid it.

  7. #7
    Matthew Gates
    Guest
    You should use a path as well. If it's in your program's directory, use App.Path.


    VB Code:
    1. SetAttr App.Path & "\m.html", vbHidden


    Safer and surer to use a path with a file, not just a single filename.

  8. #8
    Megatron
    Guest
    Or you could just use a period.
    VB Code:
    1. SetAttr ".\m.html", vbHidden

  9. #9

    Thread Starter
    Lively Member DeBauer's Avatar
    Join Date
    May 2001
    Location
    Mako Reactor #7
    Posts
    123
    Okay, I used
    SetAttr App.Path & "\m.html", vbHidden
    but I got the same error:
    Runtime error 75 path/file access error error

  10. #10
    Is m.html in the same directory as your project?

  11. #11

    Thread Starter
    Lively Member DeBauer's Avatar
    Join Date
    May 2001
    Location
    Mako Reactor #7
    Posts
    123
    yep, it only happens when I hide it.

  12. #12
    Matthew Gates
    Guest
    Are you saying that your hiding it and then trying to hide it again?

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