Reputation: 4232
Is there ability to read file that is used by another process?
Thanks.
Upvotes: 4
Views: 2920
Reputation: 2620
Depending on the files you want to access, have a look at Volume Shadow Copy.
Upvotes: 1
Reputation: 27811
It depends on how the other process opened the file (i.e., is it locked). Bear in mind that reading a file while it is being changed by another process may yield unexpected results.
Upvotes: 0
Reputation: 421988
If the process holds an exclusive lock on the file then no. If the process holds a shared lock, you can read it.
Upvotes: 7