|
-
Oct 20th, 2001, 03:35 PM
#1
Thread Starter
Lively Member
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
-
Oct 20th, 2001, 03:36 PM
#2
Member
What's the runtime error you get?
-
Oct 20th, 2001, 03:37 PM
#3
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?
-
Oct 20th, 2001, 03:38 PM
#4
Member
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.
-
Oct 20th, 2001, 03:39 PM
#5
Member
Originally posted by Matthew Gates
filburt1: Is it me or is in every post, your title and avatar different?
Mere coincidence.
-
Oct 20th, 2001, 03:58 PM
#6
Thread Starter
Lively Member
Yea im using just "m.html". It hid it.
-
Oct 20th, 2001, 04:11 PM
#7
You should use a path as well. If it's in your program's directory, use App.Path.
VB Code:
SetAttr App.Path & "\m.html", vbHidden
Safer and surer to use a path with a file, not just a single filename.
-
Oct 20th, 2001, 04:17 PM
#8
Or you could just use a period.
VB Code:
SetAttr ".\m.html", vbHidden
-
Oct 20th, 2001, 05:02 PM
#9
Thread Starter
Lively Member
Okay, I used
SetAttr App.Path & "\m.html", vbHidden
but I got the same error:
Runtime error 75 path/file access error error
-
Oct 20th, 2001, 05:29 PM
#10
Member
Is m.html in the same directory as your project?
-
Oct 20th, 2001, 05:49 PM
#11
Thread Starter
Lively Member
yep, it only happens when I hide it.
-
Oct 20th, 2001, 10:55 PM
#12
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|