Link to home
Start Free TrialLog in
Avatar of sharizod
sharizodFlag for Canada

asked on

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.
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

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
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

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 sharizod

ASKER

Thank you Vinnyd79!!  That's EXACTLY what I was looking for!!!
Full points to you!

Cheers!
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??