Dec 292017
 
Revised version of directory update program, now allows source directory as well as destination directory to be specified. c source included.
File SUPDATE2.ZIP from The Programmer’s Corner in
Category File Managers
Revised version of directory update program, now allows source directory as well as destination directory to be specified. c source included.
File Name File Size Zip Size Zip Type
SUPDATE.C 13448 3985 deflated
SUPDATE.DOC 2142 877 deflated
SUPDATE.EXE 14889 9592 deflated
SUPDATE.MAK 209 148 deflated

Download File SUPDATE2.ZIP Here

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
directory if:

1) the file exists in both the current directory and the
destination directory

and

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
that:

1) it opens the files in SHARE compatible mode so it works
under multitaskers and on networked machines

and

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.



_________



Syntax:

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
on exit.

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:

Ken Brown
5707 Jamestown Rd Apt 2
Hyattsville, MD 20782

No registration is required but I am not crazy enough to refuse
donations.

Modified 3/28/94 by Jason Olasky to add option for source directory other
than current directory, which is still the default.


 December 29, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)