scripting resources

  • Thread starter Christos Kritikos
  • Start date
C

Christos Kritikos

hello,

Could someone let me know of resources (books, websites
etc) related to windows scripting? I only know some very
basic things and I would like to expand my knowledge. I
mean, you guys are all fantastic and I am very grateful
for all your help but it would be good for me to improve
my foundation too! :)

thanks
christos
 
G

guard

Could someone let me know of resources (books, websites
etc) related to windows scripting? I only know some very
basic things and I would like to expand my knowledge. I
mean, you guys are all fantastic and I am very grateful
for all your help but it would be good for me to improve
my foundation too! :)

TheSystemGuard.com has many FREE and "Almost Free" resources devoted
entirely to Windows SHELL Scripting under NT-based operating systems.
Additional information and links follow.

*******

Shell scripting (aka writing "Batch Files") is something that all Windows
SysAdmins have to do. But the limits of the builtin commands and utilities,
along with a thousand special cases, often frustrate attempts to write a
reliable cross platform script. So we're always trying to find a utility to
do something we can't seem to coax out of the commands Microsoft included.

After dealing with this situation on a daily basis (for about 20 years now,
starting with DOS 2.x), we have developed several FREE and "Almost Free"
products to address this problem. All of these WORK CONSISTENTLY across all
NT-based operating systems including Windows NT4 SP6a+, Windows 2000,
Windows XP and Windows Server 2003.

They require nothing except the commands and utilities that are ALREADY
PRESENT on these systems. There is NO BINARY CODE, only scripting commands.

*******

For example, the simple problem of sending a time-stamped message to the
screen or a log file can easily be accomplished using the ".TimeEcho"
command. The Command Source (.cmdsrc) for the .TimeEcho command is shown
below. Simply cut and paste the code below into a console window on ANY
Windows NT4, Windows 2000, XP or Server 2003 system.

NOTE: Some software will have trouble unwrapping the long lines---so be
sure to paste it as a SINGLE LINE of code. If you are having trouble, a
text only copy, all on one line, is at
(http://TheSystemGuard.com/MtCmds/ValueEcho/TimeEcho.txt).

X-------Begin-Cut-and-Paste-------X

@SET ".TimeEcho=@FOR /F "tokens=* delims=" %] IN ('@FOR /F "tokens=5-7
delims=.:, " %[ IN ^('ECHO:Y^^^|TIME^^^|%SystemRoot%\system32\FindStr.exe
[0-9]'^) DO @^(ECHO:%[^|%SystemRoot%\system32\FindStr.exe/br [0-9][0-9]
^>NUL^&^&^(ECHO:%[:%\:%]^)^|^|^(ECHO:0%[:%\:%]^)^)') DO @CALL ECHO:[%]]"

X-------End-Cut-and-Paste-------X

The above is a "SET" command and will NOT actually run the code. It simply
loads the command .TimeEcho into your local environment. TimeEcho will add a
leading zero to the hours when necessary to keep the output CONSISTENT as
hhmnss. To test it out:

C:\>%.TimeEcho% Your Optional Message Here

[09:00:05] Your Optional Message Here

==========================================

..TimeEcho is a .Mount/\Command. This is a section of scripting code stored
in an environment variable (%.TimeEcho%) under a "sounds like what it does"
name. Instead of copying and pasting several lines of cryptic code, or
downloading another small utility to "Time Echo" some text to the screen or
a log file, just use the one-word self-documenting "Mounted Command".

More info about TimeEcho is at
(http://TheSystemGuard.com/MtCmds/ValueEcho/TimeEcho.htm).

For an explanation of how this .TimeEcho is constructed, see
(http://BoomingOrFuming.com). Specifically, read the sample issues called

"Down In The Details"

and

"A Plain Path Thru Forest FindStr".

*******

There are hundreds of other commands like this,
all in a single library, using only the native
commands and utilities. See the Master Catalog at
(http://TheSystemGuard.com/MasterCatalog.asp).

For a complete list of commands on one page, see
(http://TheSystemGuard.com/MasterCommandList.htm)

The Advanced Library is FREE for personal or commercial use
(http://ntlib.com).

The Expert Library is "Almost Free" at $9 or less per system
(http://NTCmdLib.com).

*******

How much time do you want to save today? And how much do you want to waste?

-tsg
_____________________________________________________________
Communication /*-IS-*\ Business! We Master It With KNOWLEDGE!
If you're tired of trying to slug on thru with old knowledge,
Make a NEW DECISION! Details at (http://TheSystemGuard.com).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top