FileTime compares the timestamps of one or more source files to one or
more target files and sets the ERRORLEVEL to 1 if any of the source
files is newer than any of the target files. This is useful to
automatically check to see if a target file needs to be recreated
because a source file used to create it has been updated. FileTime
allows a batch file to be used like the MAKE utility used in building
FileTime - Copyright (C) 2010-2012, Incode Systems, Inc.
Usage: [options] TargetFile SourceFile1 SourceFile2 SourceFileN
The last modified timestamp of each SourceFile is compared to
TargetFile. If TargetFile is not found or is older than any SourceFile,
ERRORLEVEL is set to 1.
TargetFile and SourceFile may contain wild cards (?,*) and if SourceFile
ends with /s, all matching files in subdirectories are checked.
The file name of the first SourceFile that is newer than TargetFile
is written to the standard output.
ERRORLEVEL is set to 2 if any SourceFile is not found.
-? write this usage to the standard output.
-a All files. Returns all source files newer than target file.
-f File by file. Compares source files with target file of the same name.
(default is to compare TargetFile to all files matching SourceFile)
-n Newer. Returns source files where TargetFile is newer instead of older.
Command line syntax error sets ERRORLEVEL to 3.
FileTime may be used in a BAT file to automatically
rebuild files which are dependent on other files.
mailto:sales1To see complete usage, type: FileTime -? | more
TargetFile and one or more SourceFile names are required.
Type FileTime -? for usage