----^--->
/\

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

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

.ValueEcho

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

ValueEcho
Series

  DateEcho | dtEcho | ElEcho | ErrEcho | ldtEcho | LogDateEcho | LogTimeEcho | TimeEcho

.ValueEcho Series

These commands change the behavior of the ECHO command, allowing you to prefix the text to be ECHOed with commonly needed values such as timestamps, etc.  All commands in this series will expand any variable in the optional "Text".

For example:

NT
2K
XP
K3

C:\GuardPost>SET "var=My message"
C:\GuardPost>%.ldtEcho% %var%
20030101 070530 My Message

.Mt/\Cmd

Sample
Output
Description
.DateEcho [Wed 01/01/2003] Text Echoes "[DATE] Text" to STDOUT.  Date format is like DATE /T, but with no trailing space.  Text is optional.
.dErrEcho [Wed 01/01/2003] Error Message Same as .DateEcho but echoes to STDERR.  Error Message is optional.
.TimeEcho [07:05:30] Text Echoes "[TIME] Text" to STDOUT.  Time is hh:mn:ss with leading 0 added to hours less than 10.  Text is optional.
.tErrEcho [07:05:30] Text Same as .TimeEcho but echoes to STDERR.
.dtEcho [Wed 01/01/2003 07:05:30] Text Echoes "[DATE TIME] Text" to STDOUT.  Date like DATE /T, Time hh:mn:ss.
.dtErrEcho [Wed 01/01/2003 07:05:30] Text Same as .dtEcho but echoes to STDERR.
.LogDateEcho 20030101 Text Echoes "yyyymmdd Text" to STDOUT.
.ldErrEcho 20030101 Text Same as .LogDateEcho but echoes to STDERR.
.LogTimeEcho 070530 Text Echoes "hhmnss Text" to STDOUT.
.ltErrEcho 070530 Text Same as .LogTimeEcho but echoes to STDERR.
.ldtEcho 20030101 070530 Text Echoes "yyyymmdd hhmnss Text" to STDOUT.
.ldtErrEcho 20030101 070530 Text Same as .ldtEcho but echoes to STDERR.
.ElEcho [123] Text Echoes "[Errorlevel] Text" to STDOUT.
.ElErrEcho [123] Text Same as .ElEcho but echoes to STDERR.
.ErrEcho Text Echoes "Text" to STDERR.  If no Text is specified, echoes a blank line to STDERR.

ValueEcho
Series

  DateEcho | dtEcho | ElEcho | ErrEcho | ldtEcho | LogDateEcho | LogTimeEcho | TimeEcho
/\
//\\
//
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\