P is for Practical | |
PerlMonks |
Re: How do I test to see if another process is writing to a file (in Windows) (!share)by tye (Sage) |
on Sep 25, 2007 at 06:16 UTC ( [id://640866]=note: print w/replies, xml ) | Need Help?? |
Sure, just open the file w/o sharing "write" access. Such an open will fail if something currently has the file open for writing. Use Win32API::File::createFile() to easily do this. - tye
In Section
Seekers of Perl Wisdom
|
|