Solved

Need an API to show files in use on Network

Posted on 1998-10-01
7
171 Views
Last Modified: 2013-12-28
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
Comment
Question by:sflats
  • 3
  • 2
  • 2
7 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1793207
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
 
LVL 2

Expert Comment

by:livni
ID: 1793208
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
 
LVL 2

Expert Comment

by:livni
ID: 1793209
I forgot to mention - the source is included there...
0
Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

 

Author Comment

by:sflats
ID: 1793210
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
 

Author Comment

by:sflats
ID: 1793211
Adjusted points to 200
0
 
LVL 7

Accepted Solution

by:
BlackMan earned 200 total points
ID: 1793212
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
 

Author Comment

by:sflats
ID: 1793213
This is exactly what I was looking for!  Thank you very much, BlackMan!  You are a lifesaver!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now