|
-
August 10th, 1999, 03:06 PM
#1
File Locking
I was wondering if any of you VB gurus could help me find a way
to lock certain files so that they cannot be written to or
deleted while the program is not running so that no one can
tamper with any files that the program uses or creates.
Something similar to the file sharing lock used in locking
databases, but that will remain locked even when the program ends until the program later unlocks
them. If anyone has any ideas at all then please e-mail me at
[email protected].
Thanks in advance,
-
August 11th, 1999, 02:01 AM
#2
Re: File Locking
how about using SetAttr and set the file to vbReadOnly?
-
August 11th, 1999, 11:47 AM
#3
Re: File Locking
Thanks for the tip. I was hoping for something a little harder to get around though, something to stop someone from being able to delete a file/dir. Thanks 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
|