Dec 172017
 
Compare the DATE-TIME stamps on 2 files and return errorlevels based on comparison. Useful for BATCH files. Could be used to update workstation files from a LAN, etc. Example BATCH file included.
File D-CHK102.ZIP from The Programmer’s Corner in
Category Batch Files
Compare the DATE-TIME stamps on 2 files and return errorlevels based on comparison. Useful for BATCH files. Could be used to update workstation files from a LAN, etc. Example BATCH file included.
File Name File Size Zip Size Zip Type
CHECKIT.BAT 1576 561 deflated
D-CHK.DOC 557 338 deflated
D-CHK.EXE 7437 7280 deflated

Download File D-CHK102.ZIP Here

Contents of the D-CHK.DOC file


D-CHK.EXE is a small program for use with BATCH files to compare the
time-date stamps of two files. DOS Errorlevels are returned depending
on the parameters. To view the help screen, just type D-CHK at the
DOS prompt.

A sample BATCH language file is included to illustrate how the DOS
error return levels can be detected and acted upon.

The unwanted output from the D-CHK program can be discarded by using
redirection.

Example of redirection:

D-CHK FILE_1 FILE_2 >NUL
where the output is redirected (">") to the bit bucket ("NUL").




 December 17, 2017  Add comments

Leave a Reply