Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Who has the file opened in NT 4.0
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00161537
Message ID:
00161539
Vues:
22
>Hello everyone!
>
>Given a UNC and file name, I need to be able to determine what user has the file opened? I know that in NT 4.0 you can get this information by going on to the server/workstation where the file resides in and typing NET FILE in an DOS window.
>
>Are there any combination of Windows API calls that would get the job done?
>

Yes, but you can only do this from an NT system, and only when logged in from an account with sufficient privilege (Administrator, Domain Admin and Server Operators all can; I'm not certain exactly which permission is needed off the top of my head.) Take a look at the Net family of API calls.
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