home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
batch
/
msutil11.zip
/
MSUTILS.DOC
< prev
next >
Wrap
Text File
|
1992-04-30
|
7KB
|
192 lines
MicroSource Utilities (c) 1992 MicroSource
Enclosed in this archive file are several small utilities that I have written
over the years at the request of other people. The batch utilities are listed
first, followed by the stand-alone utilities (which could, of course, be used
in batch files).
These utilities are released as shareware - please read the file LICENSE.DOC
for information on registration. Please note that if you register for the use
of MicroSource's very popular Postscript conversion program "PCPS", you are
automatically registered to use the following utilities.
All care has been taken in the writing of these utilities, but no responsibility
will be taken by MicroSource or Paul Carapetis for any result (good or bad)
incurred from the useage of the utilities detailed below:
------------------------------Batch Utilities-----------------------------------
isdir.com 6404 22 April 1992 18:13
*******************************************
This program will check for the existance of a specified directory.
For help enter ISDIR<cr>
ismouse.com 278 22 April 1992 18:13
*******************************************
This program checks for a working mouse and driver being present.
For help enter ISMOUSE ?<cr>
iswrite.com 6598 22 April 1992 18:13
*******************************************
This program checks that the specified disk is write protected or not.
For help enter ISWRITE<cr>
task.com 562 22 April 1992 18:13
*******************************************
Useage ═ TASK "Question",<key list>[,<timeout secs>,<timeout errorlevel>]<cr>
eg. TASK "Please enter a,b or c : ",abc,60,1
(TASK = Timeout ASK)
This utility is designed for use within batch files to make them interactive.
The above example works as follows:
- The question "Please enter a,b or c : " will be output to the screen
- The program will wait up to 60 seconds for one of the specified keys
(a,b or c) to be entered and will exit setting a corresponding error
level (1 for a, 2 for b etc.).
(the timeout period is handy if, for example, you wish to have a question
asked within the autoexec.bat on boot-up, but wish it to default to a
particular action after a given time when there is no-one around to
press keys)
- If none of the specified keys is pressed within the specified time
(60 secs in this example), then TASK will exit with an errolevel of 1
as specified in the last argument above.
- This errorlevel can then be tested as such:
IF ERRORLEVEL ? GOTO <label>
- Don't forget to test from high levels down - testing an errorlevel will
clear that errorlevel flag and any larger than it.
Please note:
The value for the timeout period in seconds and the timeout errorlevel
have upper limits of 99 (ie. maximums of 99 secs and errorlevel 99).
TASK can also be used as a normal ask type utility without the timeout. Just
leave the last two arguments off. For example, if you wished to duplicate
the above command but wish it to wait as long as is necessary for input, enter
it as such:
TASK "Please enter a,b or c : ",abc
For help just enter TASK<cr>
-------------------------Stand-alone Utilities----------------------------------
att.com 1155 22 April 1992 18:13
*******************************************
This program allows the user to easily set screen attributes using the
ANSI.SYS driver ( loaded from the config.sys file as follows: )
( device=\dos\ansi.sys )
For help just enter ATT<cr>
cwd.com 254 22 April 1992 18:13
*******************************************
Useage ═ CWD [d:][\][path]<cr>
eg: C:\> CWD D:\UTILITY\ETC
This utility will change directory, drive or both in one command. The above
example (initiated from drive C:) will change drive to D: and directory to
\UTILITY\ETC.
If just CWD<cr> is entered, the current drive and directory will be echoed.
For help just enter CWD ?<cr>
filter.com 9696 22 April 1992 18:13
*******************************************
This is a simple little program that will read a file, do a bit level filter
of all characters and then write the result out to another file. This will
work on all file types but only one bit at a time.
For help just enter FILTER<cr>
gq.exe 9058 22 April 1992 18:13
*******************************************
GetQuota returns the disk useage (in bytes) of a specified directory and
all subordinate directories to the specified one.
For help just enter GQ<cr>
howbig.com 383 22 April 1992 18:13
*******************************************
This just tells you what sort of disk drive you have ie. high/low density.
This will only work on PC/AT's or later.
For help enter HOWBIG<cr>
nonull.com 9626 22 April 1992 18:13
*******************************************
This simply reads a file, strips all NULL's from the file and writes what's
left to an output file.
For help just enter NONULL<cr>
now.com 428 22 April 1992 18:13
*******************************************
Useage ═ NOW<cr>
Outputs the current Date and Time to stdout.
rboot.com 181 22 April 1992 18:13
*******************************************
Useage ═ RBOOT [/c]<cr> (Note: /c or -c are acceptable)
This utility will reboot a PC and is very handy for initiating reboots from
batch files and the like.
If just RBOOT<cr> is entered, the system will perform a warm boot which is the
same as <Ctl><Alt><Del>.
If RBOOT /c<cr> is entered, the system will perform a cold boot which is the
same as powering the system off, then on again.
For help just enter RBOOT ?<cr>
switch.exe 31478 30 April 1992 10:22
*******************************************
This program enables the user to switch between many different configurations
and reboot the machine if required - semi smart and able to handle up to 100
different configuration pairs.
For help just enter SWITCH ?<cr>
--------------------------------------------------------------------------------
Regards,
Paul Carapetis. Internet: pjc@melb.bull.oz.au
C/- MicroSource Phone: 61 3 763 2424
102 Allister Avenue,
Knoxfield 3180.
Australia.