Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 3:08 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to determine which program has a file open
PostPosted: Tue Sep 18, 2012 7:58 pm 
Offline

Joined: Tue Feb 06, 2007 11:34 pm
Posts: 192
Location: Austin, TX
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?

_________________
Read my book, Real OOP with REALbasic
Guyren G Howe
Relevant Logic LLC

guyren-at-relevantlogic.com ~ http://relevantlogic.com

REALbasic, PHP, Ruby/Rails, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training


Top
 Profile  
Reply with quote  
 Post subject: Re: How to determine which program has a file open
PostPosted: Thu Sep 20, 2012 7:26 am 
Offline

Joined: Sun Feb 19, 2006 4:00 pm
Posts: 1282
Location: Heidelberg, Germany
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.

_________________
--

REALbasic - the best X-Platform development tool …
… if you don’t use styledText with Umlaute or accent characters.
… if you don’t need dates before 1601.
… if you only open a drawer window but never close it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group