Solved

Need an API to show files in use on Network

Posted on 1998-10-01
7
172 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

772 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