iburlakov
iburlakov

Reputation: 4232

Read file that is used by another process

Is there ability to read file that is used by another process?

Thanks.

Upvotes: 4

Views: 2920

Answers (3)

Maltrap
Maltrap

Reputation: 2620

Depending on the files you want to access, have a look at Volume Shadow Copy.

Upvotes: 1

Traveling Tech Guy
Traveling Tech Guy

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

Mehrdad Afshari
Mehrdad Afshari

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

Related Questions