Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who has the file opened in NT 4.0
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00161537
Message ID:
00161539
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform