<?xml version="1.0" encoding="windows-1252"?>
<node id="784569" title="Re: Check whether the file is in use by an other user" created="2009-07-30 07:03:53" updated="2009-07-30 07:03:53">
<type id="11">
note</type>
<author id="292373">
wazoox</author>
<data>
<field name="doctext">
IIRC Windows locks the file when opened. You may be able to check the file lock state, maybe something like this (I have no windows box to test):
&lt;c&gt;
open my $fh, "/some/file" or die "can't open!";

# try/catch file locking
eval { flock $fh, 'LOCK_EX' or die "can't lock!" };
if ( $@) {
    warn "open file!" &amp;&amp; exit;
}

&lt;/c&gt;</field>
<field name="root_node">
153486</field>
<field name="parent_node">
784527</field>
</data>
</node>
