good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: File::Copy - locked filesby afoken (Chancellor) |
on Feb 12, 2013 at 04:46 UTC ( [id://1018293]=note: print w/replies, xml ) | Need Help?? |
Recent Windows versions have a special service (Volume Shadow Service? Use Google!) for this problems, it allows you to take some kind of snapshot of the filesystem. All modifications after the snapshot do not affect your program, so you can safely copy files from a mounted filesystem. Of course, this service can't guarantee that all open files are in a consistent state. Regarding your locked Access database: Shut down the service, then backup or make at least a copy of the database file, then restart the service and exclude the original, locked file. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|