other things to experiment with; a. if the file may be successfully renamed, this implies its not being held open (clunky solution, as would require you to rename once, then again to bring it back to its original filename - but low tech), or
b. sysinternals has a utility called 'handle.exe' that reports the pid of whatever process that has a file open. if it reports nothing, then nothing is holding the file open. -----Original Message----- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Jason Lowder Sent: Thursday, February 18, 2010 6:38 AM To: perl-win32-users@listserv.activestate.com Subject: Determining if a file is open Hello, Is there anyway to determine if a file is currently open by another process? I want to look at a file that is being generated by another program (sometimes a very large file) and determine when it is finally closed. I see the file attributes for things like size, owner, type etc. but nothing to really determine it's state. Thanks, Jason _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs