LockCheck 1.00 - August 09, 1999
==============================

Included Files:

LockChk.CPP - C++ Source Code
LockChk.Exe - Win32 Executable
LOCKCHK2.EXE - OS/2 Executable
LOCKCHKD.EXE - DOS Executable



Syntax:

LockChk <filename>



Useage:

LockCheck is a simple command line utility which checks to see if a specified 
file is locked by another process and returns a 1 if it is or a 0 if it is 
not as well as a plain english message to the screen.  LockCheck was written 
specifically for use in batch file processing so that the state of the file 
can be tested before allowing another program to access it which may not
check to see if it is in use already (or completely downloaded).

Because it prints a plain text message to the screen, you can also use
LockCheck to do a quick manual check on a file before modifying it as well.

Example:

@ECHO OFF

:TOP
FOR %%F IN (*.DBF) DO LOCKCHK %%F
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



Installation:

Just copy the appropriate .exe file to somewhere in your PATH (ie, C:\DOS, 
C:\Windows, C:\OS2, etc.).



Distribution:

I am releasing LockCheck and it accompanying C++ source code into the public 
domain and you may distribute it freely.  You may also freely use the source
code in any way that you see fit.



Contacting the author:

If you have any questions, comments, suggestions, etc. I can be reached via
Internet e-mail at sysop@coderite.com