Blog Archive

LockCheck File Lock Checker

LockCheck 1.3 File Size: 34 KB
Download Free LockCheck 1.3

The LockCheck application was developed to be a simple utility which checks to see if a specified file or set of files is in use by another process. LockCheck now has two modes, BATCH (default) and LOCATE.

In batch mode LockCheck returns an ERRORLEVEL 1 if any of the selected files are in use and a 0 if none. It will also display all the files to the screen as it processes them and if a locked file is found it identifies the file and describes what condition exists that has the file locked.

In LOCATE mode, LockCheck will locate all the locked files in the specified path and display *only* the locked files to the screen. **NOTE: Locate mode does not work properly with the OS/2 version.

Example (batch mode):

@ECHO OFF

:TOP
LockChk *.DBF
IF ERRORLEVEL 1 GOTO LOCKED
GOTO PROCESS

:PROCESS
ARCHIVE 01/01/1999
GOTO END

:LOCKED
ECHO Sorry, someone's in the system.
GOTO END

:END