• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

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.
0
sflats
Asked:
sflats
  • 3
  • 2
  • 2
1 Solution
 
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
 
livniCommented:
I forgot to mention - the source is included there...
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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
 
BlackManCommented:
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
 
sflatsAuthor Commented:
This is exactly what I was looking for!  Thank you very much, BlackMan!  You are a lifesaver!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

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

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now