C:\GuardPost>ntcmdlib /i
^ =========================================================================
/!\ NTCmdLib.cmd 2004.03.28 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ =========================================================================
----------------------------------------
/\ WELCOME TO THE TOP OF THE MOUNT! /\
----------------------------------------
CmdShorthand___________: 17
Constants______________: 30
Functions______________: 9
GlobalSwitches_________: 7
GuardNotes_____________: 1
MountCommands__________: 284
Procedures_____________: 3
------------------------------
Total Library Resources: 351
_____________________________________________________________________________
[Tue 03/30/2004 16:27:59] NTCmdLib Initialization Complete!
C:\GuardPost>?
-----------------------------------------------------------------------------
RUSHMENU [NTCmdLib Expert 2004.03.28 TheSystemGuard]
-----------------------------------------------------------------------------
? Display RUSHMENU. For extended help, try "? [resource]".
. Interactive listing and execution of most .Mt/\Cmds.
c Display a brief description for a specific #Constant.
e Display current Errorlevel and ExitCode (also %ErrMsg%, if set)
f Display a brief description for a specific $FUNCTION.
g Display a brief description for a specific /GlobalSwitch.
h Hide script comments entered using ".Rem".
i Reinitialize the active library. Same as NTCmdLib /I /Q.
l Expands to the fully qualified filespec of the active library.
m Display a brief description for a specific .Mount/\Command.
man Display the help (or "man") page for a topic.
n Display a brief description for a specific !GuardNote.
p Display a brief description for a specific :Procedure.
s Show script comments entered using ".Rem".
set- Display all variables EXCEPT the specified group(s).
set+ Display ONLY the specified group(s) of variables.
set Internal SET command with most library resources filtered out.
u Unload the active library. (also unloads all COMMAND SHORTHAND)
C:\GuardPost>.
Type ". [prefix]" for a list of .Mount/\Commands -OR- ". Command" to execute.
C:\GuardPost>. ld
.ldErrEcho
.ldtEcho
.ldtErrEcho
C:\GuardPost>? ldtecho
^ ========================================================================
/!\ NTCmdLib.cmd 2004.03.28 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ ========================================================================
.ldtEcho (Display current LogDate yyyymmdd and LogTime hhmnss to STDOUT)
%.ldtEcho% [Text]
____________________________________________________________________________
DESCRIPTION: Displays the current LogDate and LogTime (yyyymmdd hhmnss,
regardless of the local date and time formats) to STDOUT,
followed by an optional message.
SWITCHES...: None
PARAMETERS.: Text = a message to display
VARIABLES..: None
ERRORLEVELS: None
RELATED....: .ldtErrEcho .LogDateEcho .LogTimeEcho .DateEcho .TimeEcho
EXAMPLES...: %.ldtEcho% Files transferred successfully
20030101 070530 Files transferred successfully
NOTES......:-LogDate will always be eight digits, regardless of the local date
format.
-LogTime will always be six digits, regardless of the local time
format.
-Leading zeroes will be added, if needed, to hours, months or days
less than 10 to maintain a CONSISTENT output.
-[Text] longer than 64 characters may wrap in an 80-column
console window.
-Variables within [Text] WILL BE EXPANDED once.
HOMEPAGE...: http://TheSystemGuard.com/MtCmds/ValueEcho/ldtEcho.htm
SYNTAX.....:
At the command line (Library IS NOT Initialized):
{Mount/\Commands are not available before Library Initialization}
At the command line (Library IS Initialized):
. ldtEcho [Text]
In a script (Library IS NOT Initialized):
CALL NTCmdLib /Init
%.ldtEcho% [Text]
In a script (Library IS Initialized):
%.ldtEcho% [Text]
____________________________________________________________________________
C:\GuardPost>. ldtecho test
20040330 071716 test
C:\GuardPost>e
[EL=0] [EC=00000000] [Msg=%ErrMsg%]
C:\GuardPost>. setel3
C:\GuardPost>e
[EL=3] [EC=00000000] [Msg=%ErrMsg%]
C:\GuardPost>man
No topic requested.
C:\GuardPost>man rem
^ =========================================================================
/!\ NTCmdLib.cmd 2004.03.28 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ =========================================================================
.Rem (mark a line of code as a dynamic comment)
%.Rem% [Comment]
____________________________________________________________________________
DESCRIPTION: Allows comments to be placed anywhere in a script that a normal
command would be accepted, including inside of complex
statements like "FOR /F" loops.
SWITCHES...: None
PARAMETERS.: [Comment] - any optional text to display
VARIABLES..: None
ERRORLEVELS: None
RELATED....: .ShowComments .HideComments
EXAMPLES...: %.Rem% [Optional Comment]
NOTES......:-Overcomes the limitations of the built-in REM command as well
as commonly used alternatives such as ":: Comment".
-Can be dynamically redefined to let comments be displayed for
testing or clarity of execution.
-When .Rem statements are displayed (using .ShowComments), the
".Rem" becomes a "CALL ECHO:" so avoid using CmdSymbols such as
<>|&()^ in the Comment.
-Variables inside of [Comment] will be expanded to their current
values at the point where the .Rem statement occurs.
HOMEPAGE...: (http://TheSystemGuard.com/MtCmds/CrystalClear/Rem.htm)
SYNTAX.....:
At the command line (Library IS NOT Initialized):
{Mount/\Commands are not available before Library Initialization}
At the command line (Library IS Initialized):
{The .Rem command is most useful inside scripts}
In a script (Library IS NOT Initialized):
CALL NTCmdLib /Init
%.Rem% [Comment]
In a script (Library IS Initialized):
%.Rem% [Comment]
____________________________________________________________________________
C:\GuardPost>set+ a w
ALLUSERSPROFILE=E:\Documents and Settings\All Users
APPDATA=E:\Documents and Settings\Administrator\Application Data
windir=E:\XPPRO
C:\GuardPost>l $len windir
^ =========================================================================
/!\ NTCmdLib.cmd 2004.03.28 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ =========================================================================
_LEN=8
C:\GuardPost>e
[EL=0] [EC=00000000] [Msg=%ErrMsg%]
C:\GuardPost>l /cf
^ =========================================================================
/!\ NTCmdLib.cmd 2004.03.28 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ =========================================================================
$CENTER (Center String)
$DEQUOT (DE-Quote - remove outer quotes)
$ESC ("Escapify" the contents of a variable)
$FCOUNT (File Count)
$LEN (String Length)
$PAD (PAD a string to TotalLength with PadCharacters)
$SCOUNT (String Count)
$SEQNUM (pads a number with zeros to a specified column-width)
$WAITFOR (Wait for specified amount of time, then execute a specified command)
C:\GuardPost>l /cg
^ =========================================================================
/!\ NTCmdLib.cmd 2004.03.28 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ =========================================================================
/C /Catalog Display Library Catalog in various formats
/E /Embed Embed .cmdhelp and !GuardNotes within the library file
/I /Init Load all library resources into memory, caching all MtCmd code.
/Q /Quiet Suppress most output except serious errors
/T /Track Show tracking information between :Procedures and $FUNCTIONS
/U /Uninstall Remove library resources from memory. Use NTCmdLib /i to reload.
/V /Verbose Show additional information while library is running
C:\GuardPost>u
C:\GuardPost>
|