----^--->
/\

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

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

Constants

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

 

Library
Resources

Constants | Functions | GlobalSwitches | GuardNotes | Command Shorthand | MountCommands | Procedures
#Constants   GLOBAL | Environment-Specific

#Constants

Commonly needed values preloaded for easy access.   CONSISTENT across NT/2K/XP/K3.

FIXED CONSTANTS use ALL CAPITALS and are always available after Library Initialization (NTCmdLib /i).  Transient Constants use Mixed Case and are normally available upon demand.

NOTE:  In actual use, constants are NOT CASE SENSITIVE
           (#Constant = #constant = #CONSTANT)

Fixed Constants (always available)

Name

  Description
#ALLSYMBOLS   32 non-alphanumeric symbols on a standard US keyboard
#ALLSYMBOLS=" < > | & ( ) , ; = % ^ : ! * ? . / \ - + ~ [ ] ' @ ` { } # $ _
#CMDSYMBOLS   14 keyboard symbols that "usually" need special treatment.
#CMDSYMBOLS=" < > | & ( ) , ; = % ^ : !
#SAFESYMBOLS   18 keyboard symbols that are "mostly" safe to use in scripts
#SAFESYMBOLS=* ? . / \ - + ~ [ ] ' @ ` { } # $ _
#DIGITS   10 digits (0-9, space delimited)
#ALPHA   26 letters of the alphabet - lower case (a-z, space delimited)
#UPPER   26 letters of the alphabet - UPPER CASE (A-Z, space delimited)
#TAB   A single TAB character
#xxx40   Various strings of 40 identical characters, used to format reports, logfiles or screen output.  xxx can be DASH -, UNDLN _, COLON :, STAR * or SPACE  .  For example,
   ECHO%#DASH40%
will display
   ----------------------------------------
#RULER   On screen ruler (used UNDER the text to measure)
#RULER=````'````1````'````2````'````3````'````4````'````5````'````6````'````7

Transient Constants (available by default after Library Initialization)

Name

  Description
#os   Current Operating System (two-letter code - NT, 2K, XP or K3) - see .GetOS, .ifNT)
#role   Current System Role (Server or Wkstn) (see .GetRole, .ifServer, .ifWkstn)
#prompt   Value of prompt at Library Initialization (see .GetPrompt and .RestorePrompt)
#LogDate   yyyymmdd, regardless of the local date format - see .GetLogDate
#LogTime   hhmnss, regardless of the local time format - see .GetLogTime

Transient Constants (available/updated on demand)

Name

  Description
#cd   Current directory {like %CD% under 2K/XP/K3 but works in NT also} (see .GetCD)
#Date   Date in local format {like %DATE% under 2K/XP/K3 but works in NT also} (see .GetDate)
#Time   Time in local format {like %TIME% under 2K/XP/K3 but works in NT also} (see .GetTime)
#LogTimeP   hhmnsshs, regardless of the local time format (see .GetLogTimeP)
#IPAddr   IP Address as nnn.nnn.nnn.nnn, or multi if more than one
(see .GetIPAddr, .ListIPAddr)
#IPGateway   IP Default Gateway as nnn.nnn.nnn.nnn, or multi if more than one
(see .GetIPGateway, .ListIPGateway)
#IPMask   IP Subnet Mask as nnn.nnn.nnn.nnn, or multi if more than one
(see .GetIPMask, .ListIPMask)
#Mac   MAC (or hardware) Address as xx-xx-xx-xx-xx-xx, or multi if more than one
(see .GetMac, .ListMac)
#Nic   NIC Description Text, or multi if more than one
(see .GetNic, .ListNic)
#TempFile   The name of a "pseudo" random temporary file to use in a script (see .GetTempFile)
#ie   The Internet Explorer version number as n.n.n.n (see :System_Info)
#ServicePack   The integer value of the current Service Pack (see :System_Info)
#HotFix   A comma-delimited list of installed HotFixes (see :System_Info)

/\
//\\
//
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\