We would like to list the files that are locked by users and also the count of locks.
The existing code we have is something like this:
Set fso = GetObject("WinNT://" & strServer & "/LanmanServer")
For Each r in fso.Resources
on error resume next
rsNew("Path") = r.Path
rsNew("Name") = r.Name
rsNew("LockCount") = r.LockCount
rsNew("User") = r.User
How do we do this in C# ?