----^--->
/\

//\\
//The\
/Sy
stem\
////
Guard
\

In the mount of the LORD it shall be seen. Genesis 22:14

ReportFooter

Booming Or Fuming? | MasterCatalog | ntlib (FREE) | NTCmdLib | MtCmds | Scripts | Almost Free | TheGuardBook | Help

 

Types of
.Mount/\Commands

.CrystalClear | .ExactName | .ExitELn | .GetValue | .ifCondition | .ifELn | .IsPattern | .ListValue | .NetValue | .NowValue | .RedirRapids | .ReliableReporting | .RestoreValue | .SetELn | .ValueEcho

Reliable
Reporting
Series

  BlankLine | ColonLine | DashLine | DotLine | DoubleSpace | ReportFooter | ReportHeader | StarLine | UnderLine

.ReportFooter

Description

Displays a footer for a standardized report. The default footer is two lines. A solid line separates the footer from any output above it, and then a line with the date, time and FileName.Ext of the running script followed by the message "- Task Complete".  The FileName.Ext can be replaced with a more descriptive term by placing the custom text in the variable ScriptName.

Syntax

%.ReportFooter%    

Parameters and Switches

ScriptName   an optional text string to describe the currently running script. If set, this text will be placed in the footer instead of FileName.Ext.

Errorlevels and Output Variables

n/a

           

Examples, Notes and Instructions

  • If used, the ScriptName variable should be limited to 34 characters to avoid line wrapping in an 80-column console window.
  • .ReportFooter is useful, in conjunction with other commands, for formatting text on the screen and in log files.

Example 1 - using the default filename and extension

%.ReportFooter%

_____________________________________________________________________________
[Wed 02/04/2004 00:00:00] !TestSuite.cmd - Task Complete.

Example 2 - using a custom ScriptName

SET "ScriptName=Expert Command Library 2004.02.04"
%.ReportFooter%


____________________________________________________________________________
[Wed 02/04/2004 00:00:00] Expert Command Library 2004.02.04 - Task Complete.

Example 3 - the following code segment is similar to the final report of the "Almost Free" Snapshot Expert script

NT
2K
XP
K3
%.ReportHeader%
ECHO:          Source File: %#TAB% %~nx1%
ECHO:   Destination Folder: %#TAB% %SafePlace%
ECHO:      Snapshot Passes: %#TAB% %Snapshot_Passes%
ECHO:      Snapshots Taken: %#TAB% %Snapshots_Taken%
ECHO:     Snapshots Missed: %#TAB% %Snapshots_Missed%
ECHO:      Total Wait Time: %#TAB% %Total_Wait_Minutes% minute^(s^)
%.ReportFooter%

Sample output from the code above is:

-----------------------------------------------------------------------------
!Snapshot running on MOUNT as Administrator
-----------------------------------------------------------------------------
        Source File:    !Snapshot.cmd
 Destination Folder:    c:\!snapshot
    Snapshot Passes:    96
    Snapshots Taken:    7
   Snapshots Missed:    0
    Total Wait Time:    480 minute(s)
_____________________________________________________________________________
[Sat 03/20/2004 02:09:45] !Snapshot Expert 2004.03.14 - Task Complete.

Reliable
Reporting
Series

  BlankLine | ColonLine | DashLine | DotLine | DoubleSpace | ReportFooter | ReportHeader | StarLine | UnderLine

 

K

E

Y

Common Commands INTERNAL External /SWITCH Parameter Help text AddonTool
Mounted Commands .Mount/\Command CmdShorthand #Constant $FUNCTION :Procedure !GuardNote
Operating Systems NT/2K/XP/K3 NT Only NT/2K 2K Only 2K/XP XP Only XP/K3 K3 Only 2K/XP/K3
/\
//\\
//
The\
/Sy
stem\
////
Guard
\
COME ON UP WITH US!
and
Congratulations On Your Decision
to
RISE ABOVE
THE REST!

^
/
!\
/LIB\

TheSystemGuard.com [Revised: 2007-03-29]
Copyright © 1995-2007, JWC
Computer Communications,
All Rights Reserved, Worldwide.
 Disclaimer       Privacy       About Us       More


Communication Is Business!

We Master It With Knowledge!

^
/
.\
/M^C\