Link to home
Start Free TrialLog in
Avatar of sflats
sflats

asked on

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.
Avatar of BlackMan
BlackMan

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..
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.

I forgot to mention - the source is included there...
Avatar of sflats

ASKER

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.
Avatar of sflats

ASKER

Adjusted points to 200
ASKER CERTIFIED SOLUTION
Avatar of BlackMan
BlackMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sflats

ASKER

This is exactly what I was looking for!  Thank you very much, BlackMan!  You are a lifesaver!