Real Software Forums
http://forums.realsoftware.com/

How to determine which program has a file open
http://forums.realsoftware.com/viewtopic.php?f=6&t=45386
Page 1 of 1

Author:  gisborne [ Tue Sep 18, 2012 7:58 pm ]
Post subject:  How to determine which program has a file open

I’m looking for a Windows equivalent of lsof. Preferably something that’s either an RB plugin or that uses standard shell commands (i.e. no external dependencies). This is so I can build an installer-type program, so the end game is that if the install script says to overwrite a file that's locked, it can display a message asking the user to quit the program.

Handle.exe has been suggested to me. However, even when I run that from an admin account, it complains that it isn't running as an administrator. I can't seem to get runas to fix this for me.

Any suggestions?

Author:  Markus Winter [ Thu Sep 20, 2012 7:26 am ]
Post subject:  Re: How to determine which program has a file open

You have changed the property of Handle.exe to "run as administrator"? Just because you are in an admin account does not mean that the app is allowed to run as admin. So right-click on it and check.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/