Contents of the SUPDATE.DOC file
SUPDATE -- SHARE compatible update utility.
Copyright 1989 by Ken Brown.
SUPDATE copies files from the current directory to the destination
1) the file exists in both the current directory and the
2) the file in the current directory is newer than the copy
in the destination directory.
What makes SUPDATE different from other utilities of this kind is
1) it opens the files in SHARE compatible mode so it works
under multitaskers and on networked machines
2) if a file (in either the source or the destination directory)
is locked by another process, SUPDATE will try 5 times to lock
the file and complete the update.
SUPDATE [source] destination
The source is optional, without it SUPDATE scans all files
in the current directory. The source may contain a mask.
The destination can be a directory, a drive spec, or both.
If there are no files to update, SUPDATE sets ERRORLEVEL to 0.
If SUPDATE successfully updates all of the files in the destination
directory that need to be updated SUPDATE sets ERRORLEVEL to 1
and exits. If one or more files could not be updated (because they
remain locked by another process) SUPDATE sets ERRORLEVEL to 2
The value of ERRORLEVEL can be checked in a batch file and used
to control what happens if SUPDATE is unable to successfully update
all of the files.
This program is "POSTware". If you find the program useful (and
particularly if you find the source code useful), please send a
post card to:
5707 Jamestown Rd Apt 2
Hyattsville, MD 20782
No registration is required but I am not crazy enough to refuse
Modified 3/28/94 by Jason Olasky to add option for source directory other
than current directory, which is still the default.
Modified 1/18/95 by Jason Olasky to add option to use . (current directory)
for destination directory if a source directory is specified.