Need an API to show files in use on Network

I am looking for an API that I can include in either a VB application or Perl script that will give me the files in use on a certain network drive.
sflatsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
BlackManConnect With a Mentor Commented:
Check OFL (Open File Lister). It is not an API, but an utility that does what you want and optionally logs the output to a file.
http://www.merxsoft.com/mersoft-Free/Users/ofl.htm
0
 
BlackManCommented:
If your Perl script is running on the server, you might be able to grab the output from a NET FILES command and parse it..
0
 
livniCommented:
There is a utility (I don't remember its name) on the site
www.sysinternals.com that lets u know what files are in use.

Try to run it remotly on the remote server.

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
livniCommented:
I forgot to mention - the source is included there...
0
 
sflatsAuthor Commented:
I have already tried the sysinternals stuff.  The utility you are thinking of only tells you which files on your hard drive are being used by other people. (Shared files that is).  What I am looking for is something that will tell you a file is in use on a network.  The problem we are having is when we go to delete a directory to clean it out and rebuild it, if a file is open, the job fails.  If we knew that the file was open and who had it open before we ran the job, we could get that person to close the file and then we could run the job.
0
 
sflatsAuthor Commented:
Adjusted points to 200
0
 
sflatsAuthor Commented:
This is exactly what I was looking for!  Thank you very much, BlackMan!  You are a lifesaver!
0
All Courses

From novice to tech pro — start learning today.