exclusive

Exclusive File access to logfile with VBScript and Filesystemobject

Need help with this one. I have a VBS script that currently writes to a logfile. This script can be kicked off my multiple simultaneous processes so now I'm worried about concurreny. I'm currently using the FilesystemObject to open and write to this file. Does FSO support exclusive file access? Thanks in Advance ...

open file in exclusive mode in C#

Hello everyone, I want to open a file for read in exclusive mode, and if the file is already opened by some process/thread else, I want to receive an exception. I tried the following code, but not working, even if I opened the foo.txt, I still can reach the Console.WriteLine statement. Any ideas? static void Main(string[] args) { u...

Open MS Access with OLEDB connection string and not have access create the .ldb lock file

I have a program in C# that uses an MS Access database and I'm using OleDb to connect and do queries on that database. My issue is that I have some sensitive info in the database and I don't want it to appear as an Access DB. I changed the extension, but when I open it it still creates the .ldb lock file used by Access. I want to have th...

Change MS Access to Exclusive on the fly

I have a process in an MS Acess database that the users will usually run once daily, but could be more or less. It takes several minutes and requires temporary exclusive access because it deletes and recreates the main table. I have code to check to see if there are other users in the db before the process starts, but is there a way to c...

Subversion Exclusive Checkout and Subversion Plugin for Delphi

Is there currently a feature that allows a exclusive checkout in SVN? and Is there a good plugin for Delphi that allows the access via IDE? ...

Grab exclusively/release mouse in application (Windows, C++)

Hello. I have lost many hours trying to grab exclusively the mouse in my application and re-releasing it. Right now, I am grabbing it correctly : the mouse cursor disappears from screen and I can read its properties fine. However, I can't release it correctly! The mouse cursor reappears on screen but no other application is receiving a...

Does the following java code guarantee and exclusive lock on an unopened file in Windows?

Does the following java code guarantee and exclusive lock on an unopened file in Windows? import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Test { public static void main(String[] args) { File file = new File("mylog.log"); try { ...

What's the least invasive way to read a locked file in C# (perhaps in unsafe mode)?

I need to read a Windows file that may be locked, but I don't want to create any kind lock that will prevent other processes from writing to the file. In addition, even if the file is locked for exclusive use, I'd like to see what's inside. Although this isn't my exact use case, consider how to read a SQL/Exchange log or database file ...