I think this is what you want:  (note, I haven't tried it)<br><br>   <a href="http://technet.microsoft.com/en-us/sysinternals/bb896655">http://technet.microsoft.com/en-us/sysinternals/bb896655</a><br><br><br><div class="gmail_quote">
On Fri, Aug 24, 2012 at 11:21 AM, Bob Kuo <span dir="ltr"><<a href="mailto:bobjkuo@gmail.com" target="_blank">bobjkuo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looks like this stack overflow post might be perfect:<br>
<br>
<a href="http://stackoverflow.com/questions/3220206/determine-whether-a-file-is-in-use-in-perl-on-windows" target="_blank">http://stackoverflow.com/questions/3220206/determine-whether-a-file-is-in-use-in-perl-on-windows</a><br>

<br>
There might be a nicer way if your machine has powershell which would<br>
allow you to directly call Windows APIs.<br>
<span class="HOEnZb"><font color="#888888"><br>
b<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Fri, Aug 24, 2012 at 10:00 AM, Price, Bob <<a href="mailto:BPrice@atgf.com">BPrice@atgf.com</a>> wrote:<br>
> I’m looking for a way to find out on a windoze platform whether or not a file is open by another process or user.<br>
><br>
> Scenario:<br>
><br>
> I have a process that copies files from one location to another, and deletes the original file upon successful copy. The problem arises when a user is holding that file open in another program (i.e. open in acrobat, still being written, etc.), and I don’t want to loop back and copy the file again. I would rather be able to determine that the file is in use, and just skip on to the next file, coming back later to check on the file and process it when it is no longer in use.<br>

><br>
> Any experience with this?<br>
><br>
> _______________________________________________<br>
> Champaign-Urbana mailing list<br>
> <a href="mailto:Champaign-Urbana@pm.org">Champaign-Urbana@pm.org</a><br>
> <a href="http://mail.pm.org/mailman/listinfo/champaign-urbana" target="_blank">http://mail.pm.org/mailman/listinfo/champaign-urbana</a><br>
_______________________________________________<br>
Champaign-Urbana mailing list<br>
<a href="mailto:Champaign-Urbana@pm.org">Champaign-Urbana@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/champaign-urbana" target="_blank">http://mail.pm.org/mailman/listinfo/champaign-urbana</a><br>
</div></div></blockquote></div><br>