Top "Filelock" questions

File locks are locks held by an application, preventing interference from other processes.

How to check for file lock?

Is there any way to check whether a file is locked without using a try/catch block? Right now, the …

c# .net io filelock
How to unlock a file from someone else in Team Foundation Server

We have a project that is stored within our TFS server and some files were Checked-Out by me from another …

tfs filelock
PowerShell script to check an application that's locking a file?

Using in PowerShell, how can I check if an application is locking a file? I like to check which process/…

powershell scripting filelock
Linux flock, how to "just" lock a file?

In Bash, I'm trying to make a function getLock to be used with different lock names. function getLock { getLock_FILE="${1}" …

linux file-locking flock filelock
Java FileLock for Reading and Writing

I have a process that will be called rather frequently from cron to read a file that has certain move …

java file-locking filelock
Can I prevent a StreamReader from locking a text file whilst it is in use?

The StreamReader locks a text file whilst it is reading it. Can I force the StreamReader to work in a "…

c# .net logging concurrency filelock
FileStream to save file then immediately unlock in .NET?

I have this code that saves a pdf file. FileStream fs = new FileStream(SaveLocation, FileMode.Create); fs.Write(result.DocumentBytes, 0, …

c# filestream filelock
Using FileChannel to write any InputStream?

Can I write any InputStream into a FileChannel? I'm using java.nio.channels.FileChannel to open a file and lock …

java inputstream filelock filechannel
How to find out what processes have folder or file locked?

How do you go about querying running processes to find out what folders or files they have locked? (i.e. …

.net-3.5 filesystems filelock