I don't usually comment on windows specific problems, but this problem could exist in any computer environment as well.
I suspect that you have some 'daemon process' accessing the files for indexing purposes, and if you could find how the daemon locks the files, then duplicate that process.
This would normally happen very fast, so I doubt a 'human' user is your problem.
Some possible solutions that might work:
- If your operation is not 24x7, then run this script off-shift in single user mode.
- Can you change the owner of the directory/files to be accessed only by your script
- Can you mount a separate drive and copy the directory. Obviously this drive needs to be restricted from your users.
This is a common problem in multi-user, multi-tasking operating systems,
so there has to be a way to fix this. Perl is not the problem, but perl has tools to access your system, and invoke some operating specify solution.
Good Luck
"Well done is better than well said." - Benjamin Franklin
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.