copy locked files
Adam Pletcher
adam at volition-inc.com
Mon Jun 18 12:41:32 EDT 2007
Do you mean files marked in-use by the OS, like DLLs used by an open
application?
There shouldn't be anything preventing you from copying in-use files, or
even read-only files if that's what you meant:
import shutil
shutil.copy('C:\\my_application\\test.dll',
'C:\\new_folder\\test.dll')
Although you can't move or delete an in-use file, AFAIK.
- Adam
> -----Original Message-----
> From: python-list-bounces+adam=volition-inc.com at python.org
> [mailto:python-list-bounces+adam=volition-inc.com at python.org]
> On Behalf Of rubbishemail at web.de
> Sent: Monday, June 18, 2007 9:50 AM
> To: python-list at python.org
> Subject: copy locked files
>
> Hello,
>
> do you know of any way to copy locked / opened files under win xp?
> I know there is something like "Volume Shadow Copy" but I
> don't know how to use it.
> Maybe someone already has a python solution?
>
>
> Many thanks
>
>
> Daniel
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list