A1VBCode Forums

Script to list locally opened files


http://www.a1vbcode.com/vbforums/Topic31383.aspx

By amna_shahzad - 4/19/2012

Hello,

I am looking for a script, preferably vbs, that can list files opened locally on a system.

I can use the net file command to list files opened through share access, but I am looking to see files opened locally on the system.

I have tried openfiles.exe, turned local on with /local on and rebooted but no luck, I open a file locally, tried .txt and xls files and it lists nothing.

If you could point me to a script sample, it would be appreciated. I am familiar with wmi programming and the like as well.



Thank you.