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

How to get detailed list of open files locally and remotely.

Hi experts,

I was wondering if there is a quick way that I can get a list of open files
from either a local PC or a remote PC?  I have developed a component
that currently utilizes another utility to spit this information out to me . I
can also query other servers remotely using this utility.  I parse the
output and return the users attached to a specific file.

What I want to be able to do instead is to create a self-contained
component that doesn't have to shell out to use the utility.  I want to
iterate through the list of all open files on a user-specified machine
(could be local or remote), and pick up one specific file name giving
what user is attached to it.

If anyone can point me in the right direction, that would be cool.

TIA,
Shar.
0
sharizod
Asked:
sharizod
  • 2
1 Solution
 
InteractiveMindCommented:
Could you not use this other utility to output the data to a file - then with a custom component, just parse the file to extract the required info?

>> IM
0
 
vinnyd79Commented:
0
 
sharizodAuthor Commented:
Thank you Vinnyd79!!  That's EXACTLY what I was looking for!!!
Full points to you!

Cheers!
0
 
sharizodAuthor Commented:
VinnyD,

I can't seem to make it work for any machine but on the local LAN.  We have several
servers that are local but route through the internet in our VPN.  Any words of
wisdom?   If it works for the local LAN by IP or name, should the code in the
MVPS link above also work across a VPN??
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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