Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know a file is being accessed by whom on NT Serve
Message
De
08/12/1998 07:51:32
 
 
À
07/12/1998 23:57:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00110280
Message ID:
00165003
Vues:
30
>I may out of date here... :) The Win NT Resource Kit includes a Network Watch utility that does that. Obviously, not programatically.
>
>Vlad

Yep, and it uses NetFileEnum(), as mentioned by Pat Boens. It -can- be done programmatically, but access to it requires that the user is a member of the Administrators or Account Operators local group. It's also a bit cumbersome to program (you specify the server and base path, and then spin through using a resume handle. You can't tell it to return info on just a single file, and you must know the local path; IOW, knowing the share doesn't help (the UNC or mapped drive path on another machine is no help, you have to specify things in the server's local context.)

When you're logged into the system via a domain login, you get back ERROR_ACCESS_DENIED fairly often, even if the user has a valid account on the system. You have to be logged into the account on the NT box machine locally, and not onto the domain to make it work.

>
>>I'm not sure if there's a way to do so programmatically from a workstation, but from the server (or from a workstation logged in as a domain admin with remote administration enabled) the Server Maintenance application under Administrative Tools can be used to view the active connections of each user in the domain to any server resource.
>>
>>hth,
>>
>>Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform