bill stewart's site

shell scripting toolkit

download here: sst27.zip (493,009 bytes; 12 mar 2010)

this is a small collection of win32 console programs (command-line utilities) to assist with cmd.exe shell scripting in windows nt 4.0 and later. documentation is provided in pdf format.

program description
ccase converts standard input to upper or lowercase, and writes to standard output.
colorx echoes the current screen colors to standard output, or sets the colors for the next text to be written to standard output.
datex echoes the current date, a specified date, or an offset of either the current date or a specified date to standard output in a variety of formats.
drivex returns the drive type for the current or a specified drive as an exit code, or echoes drives of a specified type to standard output.
echox echoes text to standard output in a specified color. supports several escape characters and a formatting width and alignment.
finfo echoes information about one or more files to standard output.
ifx case-insensitive string or or numeric comparison of two arguments (not needed on winnt).
linex counts the number of lines in standard input; prints a specific line, a range of lines, or a specified number of lines from the beginning or end of standard input. can also output in reverse order.
s2v a real-mode ms-dos program that reads the first line of standard input and stores it into an environment variable (non-functional, and not needed, on winnt).
shellesc for each line of standard input, inserts a shell escape character (^) before each reserved shell character, and writes it to standard output.
sleepx pauses a script for a specified period of time. can display a prompt, and can optionally be interrupted by a keystroke.
str counts characters in a string, echoes a string in upper or lowercase, and searches for one string in another.
tee writes each line of standard input to a file and to standard output simultaneously.
tempname generates a temporary unique file name.