|
-
Mar 17th, 2007, 10:34 PM
#1
Thread Starter
Member
Detect if A file is in use
On my network multiple people will be accessing the same file daily. I wanted to know if there is a way with code to detect if the file is in use.
-
Mar 19th, 2007, 01:44 PM
#2
Re: Detect if A file is in use
Access for reading or writing? If for reading it doesn't matter. If for writing, open the file for writing and trap the error. How you do that depends on the language the code is written in.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Apr 2nd, 2007, 08:54 PM
#3
Hyperactive Member
Re: Detect if A file is in use
try renaming the file.
if you can, it's not busy, so rename it back.
in a winnt environ, you can also use the openfiles command at the command line.
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
|