----^--->
/\

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

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

TREASURES IN THE SAND - 20030205

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

 

THE ANNOUNCING ISSUE - 20030101 | THE FIRING ISSUE - 20030108 | A TRIP UP THE CLIFFS OF IF - 20030115 | AIRBORNE ON SET RIDGE - 20030122 | DOWN IN THE DETAILS - 20030129 | TREASURES IN THE SAND - 20030205 | A PLAIN PATH THRU FOREST FINDSTR - 20030212

Are you Booming or Fuming?

TREASURES IN THE SAND - 20030205!

Last week's  Flying Rumor has landed!  The new .Mount/\Command Set Release 2003.02.04 was discovered along the banks of the Net River, which rages down the slopes of Mount Knowledge!

 Over 200 Mount/\Commands were found!

The entire script (MtCmds.cmd) is less than 25K and now loads in under 2 seconds!


The new Command Set is the first MAJOR release since Joe Fumer has been with the group.  He's still "shocked out" that the previous release worked so well and cost so little!

"The entire set of over 200 commands for $7 or less per machine?!  That's ALMOST FREE!  You can't be serious!?"

(We're SERIOUS Joe.)


The newest .Mount/\Command Set is UN-BE-lievable!  Check this out!


.ListFree

1.    Displays a comma-delimited list of free space for all accessible local and remote drives.
2.    Saves the returned values in variables named #Free_[drive].

C:\GuardPost>%.ListFree%
C,2000000000
D,1929105408
E,11436032
F,0
J,2000000000
M,2000000000
Q,1804656640
W,336158720

C:\GuardPost>SET #Free
#Free_C=2000000000
#Free_D=1929105408
#Free_E=11436032
#Free_F=0
#Free_J=2000000000
#Free_M=2000000000
#Free_Q=1804656640
#Free_W=336158720

Due to limitations in the maximum permissible value of the SET /A command, values greater than 2 Million bytes are* displayed as 2000000000.  But it gets BETTER...!


.ListFreeM

1.    Displays a comma-delimited list of free space (in Millions of bytes) for all accessible local and remote drives.
2.    Saves the returned values in variables named #FreeM_[drive].

C:\GuardPost>%.ListFreeM%
C,2027
D,1929
E,11
F,0
J,2578
M,2578
Q,1804
W,336

C:\GuardPost>SET #FreeM
#FreeM_C=2027
#FreeM_D=1929
#FreeM_E=11
#FreeM_F=0
#FreeM_J=2578
#FreeM_M=2578
#FreeM_Q=1804
#FreeM_W=336

Using One Million Bytes as our base value, we can correctly display and manipulate free space up to 2047 Terabytes!  All values are ROUNDED DOWN to the nearest WHOLE Million (M=Exactly 1 Million Bytes).  Using "M" (1000000) instead of "MB" (1048576), the output of .ListFreeM can be directly compared with other byte totals taken from the output of the DIR command.


The Get[Value] series has also been greatly expanded.

We can now retrieve values for:

Operating System (NT,2K,XP,K3)
Role (Server,Workstation)
IP Address, Default Gateway, Subnet Mask
MAC Address, NIC Description
Console Lines, Columns, CodePage
Date, Time, Precise Time
LogDate (yyyymmdd), LogTime (hhmnss), Precise LogTime (hhmnsshs)
Free Space on current drive (in bytes)
Free Space on current drive (in Millions of bytes)

C:\GuardPost>%.GetRole%
Server

In addition, the GetTempFile command provides a pseudo-random temporary file name to use within a script.  You can invoke the command as many times as needed to retrieve multiple file names.


The List[Value] series now includes the .ListFree and .ListFreeM commands noted above as well as other .M/\Cs to list:

Available Drive Letters
Current directory of all drives (local and remote)
IP Addresses, Default Gateways and Subnet Masks
MAC Addresses and NIC Descriptions
Temporary file names (as provided by .GetTempFile)

C:\GuardPost>%.ListCD%
C:\GuardPost
D:\
E:\
F:\
J:\
M:\
Q:\
W:\


The Net[Value] series now provides formatted lists of various network resources such as:

ComputerName
DomainName
ComputerName
,MacAddress
ComputerName,IPAddress
Domain,ComputerName,MacAddress

Example:

C:\GuardPost>%.NetMacs%
SERVER1,00-80-C6-11-22-33
SERVER2,00-10-B5-44-55-66
WORKSTATION1,00-30-18-FE-DC-BA
WORKSTATION2,00-07-95-01-23-45
WORKSTATION3,00-07-95-67-89-AB


All utilities from the Common Command Set - External now have a %.Command% equivalent that provides a strong hold on the "Cord of Speed".  Using "%.FindStr%" is faster than "FindStr" as %.FindStr% will expand to the fully qualified file name and extension.

For Example, if Windows is installed in C:\WINNT, then %.FindStr% will expand to "C:\WINNT\System32\FindStr.exe".  This can be considerably faster than the old way, especially in multiple iterations like a subroutine call or a FOR Loop.  An additional benefit is the ability to easily specify an alternate location for all command-line utilities without changing any of your scripts.


The "Redir Rapids" Series has been expanded to allow individual control over every command in your script.  You can even force a particular command to display to the console, EVEN IF THE ENTIRE SCRIPT IS DIRECTED TO A LOG FILE!

For example, the following lines will ALWAYS display to the local console, regardless of any other redirection in place:

%.Show% Command        {force STDOUT to the console}
%.ShowErr% Command   {force STDERR to the console}
%.ShowAll% Command    {force STDOUT and STDERR to the console}

Other commands in the "Redir Rapids" Series:

Silent (suppress STDOUT and STDERR)
Quiet (suppress STDOUT only)
Kity (suppress STDERR only) {KITY=Keep-It-To-Yourself}

There are also pre-escaped versions of each command for use inside FOR loops.  The following command will clear the contents of all variables beginning with "var" and will NOT display an error message if no variables exist with that prefix:

FOR /F "delims==" %%A IN ('%.eKity% SET var') DO (SET %%A=)


IfEL[n], SetEL[n] and ExitEL[n] Series.  These commands provide precise control for checking and setting errorlevels within a script, and for setting the errorlevel upon exiting a script, subroutine or command.  Many different values of [n] are available and each command is dynamically adjusted using the "Cord of Compatibility" to obtain CONSISTENT RESULTS across all supported operating systems.


If[Condition], IfNot[Condition] Series

[Conditions] that are available to be tested are:

Day of Week present in the output of "DATE /T"
Server or Workstation OS
Domain Controller
OS version is (or is not) NT, 2K, XP or K3

Examples:

%.IfNotServer% ECHO:This machine runs a workstation OS
%.ifDC% ECHO:This machine is a domain controller
%.ifNotNT% ECHO:This machine is NOT running NT


Is[Pattern] IsNot[Pattern] Series

Command1 Is[Pattern]    Command2
Command1 IsNot[Pattern] Command2

In either case Command2 will only be executed if the output of Command1 matches (or DOES NOT MATCH) the [Pattern].  Available [Patterns] are:

Alpha - matches any upper or lower case letters (A-Z and a-z)
Num - matches numbers (0-9)
AlphaNum - matches letters and numbers (A-Z, a-z, and 0-9)

Examples:

ECHO:%1 %.IsNum% ECHO:The first parameter is numeric.
ECHO:%* %.IsNotAlphaNum% ECHO:Contains non-alphanumeric characters.

This series is also called "Bridge" commands.  Think of it this way.  You can only cross the "bridge" and execute Command2 if you match (or DO NOT MATCH) the [Pattern].


The "Restore[Value]" Series is also available to restore system or console parameters that were temporarily changed during your script back to their original state.

Example Script:

%.GetLines%
%.GetCols%
{Save window dimensions}
.
.
%.Mode% CON Lines=YourLines Cols=YourCols
{Run your script at a custom window size}
.
.
%.RestoreWindow%
{Restore the original window size}


The above is just a sampling of what's in Release 2003.02.04!

Each "Series" in the complete .Mount/\Command Set is easily extended using your own commands.  Most commands also include an equivalent "eSeries" command that is "escapified" and ready to use inside the ()'s of a FOR statement.

We also construct custom Command Sets for your specific applications!


Joe Fumer is overwhelmed by the Flying Rumor that landed with all these TREASURES!  He is on his way to becoming Happy, Healthy and Wealthy!

A Healthy Computer with a Wealth of Knowledge makes a Happy System Administrator!

GUARANTEED FUME FREE!!!

Why don't you join us?!


You can try out .Mount/\Commands for FREE by requesting the Advanced NT/2K/XP Command Library.  This library has over 50 fully functional .M/\Cs including .TimeEcho.

-------Begin (TimeStamp.cmd)-------

01. %.TimeEcho% Job Started
02. ECHO:Working
03. %.TimeEcho% Job Completed

-------End (TimeStamp.cmd)-------

C:\GuardPost>TimeStamp
[15:34:58] Job Started
Working
[15:34:59] Job Completed


The "Almost Free" Expert NT/2K/XP Command Library includes over 200 M/\Cs plus dozens of other Resources.  More information is available at http://NTCmdLib.com


The complete .Mount/\Command Set (Release 2003.02.04) is available separately starting at $7 or less with quantity discounts beginning at 5 or more.  A small business network with 50 machines can license the entire Command Set for $5 or less per system!

Release 2003.02.04 provides the most extensive (and fastest) command set we've ever released  to the general public!  Even on the slowest, most heavily loaded server in our Test Lab (P233MMX,128MB,NT4 Svr SP6a, ExchSvr 5.5 SP4, Norton Antivirus, PestPatrol, Intranet Server), the entire command set loads in UNDER 7 SECONDS


All of our products are completely written using ONLY what is available in ALL INSTALLATIONS of Windows NT4 SP6a, Windows 2000, Windows XP and Windows Server 2003.

There is NO BINARY CODE, ONLY SCRIPTING COMMANDS!!!

No install/uninstall is required, and they can be loaded from local drives (recommended), mapped drives or via UNC (\\server\share\ntlib.cmd). Everything that each script requires is already present in a default Windows install.  (see Compatibility page for details)


To start receiving BoomingOrFuming?, first register, then follow the instructions on the contact page.

Space is limited and time is short, so reserve your spot today!

We'll take you up the Mountain of Knowledge, which rises higher than all the other Hills of Confusion.

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