flyingboz 2 Posted May 16, 2005 Any suggestions /approaches for determining open files, and enumerating the user(s) who have them open? I have googled, and rtfm, and searched the forum for the topic title keywords, to no avail. TIA Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Share this post Link to post Share on other sites
Fur 0 Posted May 16, 2005 Windows has an obscure tool not installed by default for this, called OH.EXEMore info & download at: http://www.microsoft.com/windows2000/techi...isting/oh-o.aspMay not be exactly what you need, but should at least be a starting point for you. Share this post Link to post Share on other sites
mother9987 0 Posted May 16, 2005 If you can figure out how to use ntdll.dll NtQuerySystemInformation, it can spit out a list of every file handle in use in the system. I've been having no luck calling it, however. Trying to figure out what files are open by process, here. So, good luck! Share this post Link to post Share on other sites
/dev/null 2 Posted May 17, 2005 Any suggestions /approaches for determining open files, and enumerating theuser(s) who have them open?Take a look at this...http://www.sysinternals.com/ntw2k/freeware/handle.shtml"handle -u" will give you the required information. However, you willhave to parse the file. The program was started on the secret laptopof 007. Current User is: JamesWINWORD.EXE pid: 2700 LAPTOP-007\James 13C: File C:\DOKUME~1\James\LOKALE~1\Temp\~DFD22A.tmp 264: File C:\DOKUME~1\James\LOKALE~1\Temp\~WRF0000.tmp 3EC: File C:\test.doc many more lines deleted....CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Share this post Link to post Share on other sites
therks 33 Posted May 17, 2005 Hey, that handle is handy (pun totally intended). I wish I'd found this before. I installed OH.exe, but it tells me I need to restart before it will work, so bleh. I think I might just be able to use this handle utility though. My AutoIt Stuff | My Github Share this post Link to post Share on other sites