Hi, Someone may have a better option, but one way to do it would be to use the external program 'handle' available from sysinternals (http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx) . You could see if the file was open using this command - of course you could encounter a race condition if the other process then opens the file before you open it (not sure if this is a possibility or not). Ken
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jason Lowder Sent: Thursday, February 18, 2010 9:38 AM To: [email protected] 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 [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
