Get CompFileDate at SourceForge.net. Fast, secure and Free Open Source software downloads

CompFileDate by DelphiDabbler

Description

CompFileDate is a file modification date comparison utility for the Windows command line. See below for an overview of the program.

This project was registered on SourceForge.net on 28 Jul 2009.

This is only a small project and it was registered simply for the purpose of evaluating SourceForge before migrating a larger project.

Further Information

Overview

This console application compares the last modification dates of two files whose names are passed on the command line. It returns an exit code that informs if the first named file has an earlier modification date than the second file.

The usage is:

CompFileDate <filename1> <filename2> [-v]

or

CompFileDate -h | -?

Where

<filename1>
Is the name of the first file to be compared.
<filename2>
Is the name of the second file to be compared.
-v
Causes the program to emit output to the console's standard output. If this switch is not specified the program emits nothing, unless an error is detected when the switch is ignored.
-h or -?
Displays a help screen on standard output.
CompFileDate Exit Codes
Code Meaning
0 <filename1> is newer than, or has the same modification date as <filename2>.
1 <filename1> is older than <filename2>.
100 Unknown error detected.
101 An invalid switch was supplied.
102 Incorrect number of file names supplied.
103 Both file names were the same.
104 Date information couldn't be read from one or both files. It is possible that a file doesn't exist