File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes copy a locked file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "copy a locked file" Watch "copy a locked file" New topic

copy a locked file

benny rusli
Ranch Hand

Joined: Jan 15, 2005
Posts: 72
Hello Everybody,
i want to know if there is a method, with Java to copy a file that is in use or locked by another application. Any Help will be appreciated.
Arto Pastinen
Ranch Hand

Joined: Dec 13, 2002
Posts: 79
There is no way, and that lock is windows specific feature.
I agree. Here's the link:
subject: copy a locked file
It's not a secret anymore!