Solved

Need an API to show files in use on Network

Posted on 1998-10-01
7
170 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

23 Experts available now in Live!

Get 1:1 Help Now