[req] who has my files opened on lan - desklet

it would be awesome to have a desklet that will display that information, just like when you type "net file" in command prompt, and some other features like in "net session" for example

i tried to make something with avescripter and vbscript but i realized that vbs cannot call dll files (this one needs netapi32.dll that comes with windows).. any suggestions ?

#360650

You can use the Active Directory Services in script:

Dim fso 'As IADsFileServiceOperations
Set fso = GetObject("WinNT://YourComputerName/LanmanServer")

For Each r In fso.Resources
MsgBox r.User
MsgBox r.Path
MsgBox r.LockCount
Next

There's a lot of info about this in the MSDN.

hth,

herd

#360728

thanks i'm trying it now.. i was searching msdn but didn't look in that direction.. i was looking for this http://msdn.microsoft.com/library/default....netfileenum.asp and had no idea how to access that

#361493