Table of Contents

Previous

Next


Show Time and Date Example

This example simply displays the time and date in the log file by calling the time and date commands built into the DOS command-line interface. In this case, the script was added as a pre-build step for the job running before the first target starts generating output.

../Automating_Projects.4.34/ScriptTimeDate.png

The following output shows the time and date included in the log before the first target starts the generation process. This information can automatically timestamp a job log file. You can also use these values in your script to log elapsed time and make decisions.

WebWorks Automap

09:57 AM

Mon 6/23/2008

Scanning 1 document(s)...

Building target: WebWorks Help 5.0

Generation started at 9:57:15 AM

Initializing file information

Updating documents.

Applying settings to WebWorks.doc, 1 of 1.

ePublisher/2008.3/Help/Preparing_and_Publishing_Content/Automating_Projects.4.34 (last edited 2008-10-11 06:31:41 by BenAllums)