Re: Checking if File Open

new topic     » goto parent     » topic index » view thread      » older message » newer message

OtterDad wrote:
> 
> as much as i hate to commit on-line suicide by questioning Derek, a question
> comes to mind. your example appears to handle only files opened by Euphoria
> itself, which has no true open shared mode. would your code work to read a
> file opened by another language, say PowerBuilder, which supports files
> opened in a shared mode by multiple users?

To further specify my situation, the file I'm attempting to replace might
be open by another application.

> a trick i often use to test if a file is REALLY closed, is to use a WinAPI
> call to move the file to a temp directory and then back home again. the OS
> won't move files opened in shared mode.

Derek, will your example suffice, or will I need to go another route?

Thanks guys!!!

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu