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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> On Behalf Of [EMAIL PROTECTED]
> Sent: Monday, June 18, 2007 9:50 AM
> To: [email protected]
> 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
>
--
http://mail.python.org/mailman/listinfo/python-list