home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
sms-2.zip
/
SEBFU35.EXE
/
SEBFU.DTA
< prev
next >
Wrap
Text File
|
1991-06-01
|
233KB
|
7,408 lines
USERID 13SWV35051791
DSKRDY.DOC 1024
; Syntax : DSKRDY d: /H /W /T ?
; Where : 'd:' is any valid drive, A,B,C followed by a colen
; '/H' specifies check of hard drive, default is floppy
; '/T' Type of drive (errorlevels 2 thru 5)
; '/W' Checks for write protect, writes to disk ***
; '?' displays the usage, other switches ignored
; ERRORLEVELS : 255 (0FF) tamper detect
; 254 (0FE) bad command line
; 253 (0FD) invalid drive
; 8 drive failed (no disk in drive, etc...)
; 7 floppy write protected
; 6 no floppy installed (change line support)
; 5 1.44 Meg floppy
; 4 720K floppy
; 3 1.2 Meg floppy
; 2 360K floppy
; 1 Disk is formatted
; 0 Safe to format
FMTD.BAT 384ECHO OFF
CLS
IF %1*==*GOTO XIT
:TST
DSKRDY %1
IF ERRORLEVEL 2 GOTO DRVPRB
IF ERRORLEVEL 1 GOTO FMTQ
:FMTD
FORMAT %1
GOTO XIT
:FMTQ
ECHO Disk in drive %1 already formatted, reformat ? (Y/N)
YN
IF ERRORLEVEL 2 GOTO XIT
GOTO FMTD
:DRVPRB
ECHO disk error ! Press ENTER to retry (correction made)
ECHO or press ESCAPE to abort
CR
IF NOT ERRORLEVEL 1 GOTO TST
:XIT
GO.BAT 44echo off
cls
type read.me
pause
syntax
PASSYS.BAT 88ECHO OFF
WRITE /N,USER NAME :
RESP NAME
WRITE /N,PASSWORD :
PSWD
LOG %NAME% /I
ORDER.FRM 4608
SCANLON ENTERPRISES - ORDER FORM
┌─────────────────────────────────────────────────────────────┐
│ Product / description UNIT EXTENDED │
│ PRICE PRICE │
│ Quan │
│ SEBFU 3.5 (Batch File Utils) ..... $ 39.95 ____ _________ │
│ │
│ LWRITE 1.0 (Text Editor) ......... $ 20.00 ____ _________ │
│ │
│ SEBFI 1.0 (Batch file interpreter $ 20.00 ____ _________ │
│ │
│ SEBFI + (Enhanced SEBFI) ......... $ 59.95 ____ _________ │
│ │
│ BATHOOK (Add commands to DOS) ... $ 12.95 ____ _________ │
│ │
│ BATHOOK + (Enhanced BATHOOK) ..... $ 59.95 ____ _________ │
│ │
│ GMENU (Menuing System) .......... $ 9.95 ____ _________ │
│ │
│ GMENU + (Enhance Menuing System) . $ 29.95 ____ _________ │
│ │
│ AREA CODE ........................ $ 3.00 ____ _________ │
│ │
│ BCS (Phone dialer, message center) $ 9.95 ____ _________ │
│ │
│ PPD (Pop up phone dialer) ....... $ 19.95 ____ _________ │
│ │
│ PPD + (Enhanced PPD) ............. $ 59.95 ____ _________ │
│ │
│ Shareware Catalog on Disk ........ $ 5.00 ____ _________ │
│ │
│ Shareware sampler ................ $ 5.00 ____ _________ │
│ │
│ S U B T O T A L (ABOVE) ..................... _________ │
│ │
│ Shipping / handling (US orders) $ 2.00 _________ │
│ │
│ Shipping / handling (Canda/Mexico) $ 3.00 _________ │
│ │
│ Shipping / handling (All others) $ 5.00 _________ │
│ │
│ C.O.D. charge .................... $ 5.00 _________ │
│ │
│ California Residents 7% tax ................. _________ │
│ │
│ G R A N D T O T A L .................... ___________ │
│ │
│ Credit card purchase Visa Master Card (circle one) │
│ │
│ │
│ Card # __________________________ Expires on ____________ │
│ │
│ │
│ Name on card _____________________________________________ │
│ │
└─────────────────────────────────────────────────────────────┘
Make check or money order to : SCANLON ENTERPRISES
3854 17TH St E , Palmdale, CA 93550
C.O.D. or charge orders may call (805) 272-4827
Name & address to send order to :
_________________________________________________
_________________________________________________
_________________________________________________
MANUAL.DOC 108800
Welcom to SEBFU version 3.5.0
S E B F U
Version 3.5.0
Scanlon Enterprises Batch File Utilities
(1990) Scanlon Enterprises
U S E R M A N U A L
Scanlon Enterprises
38354 17th St. E. #D
Palmdale, CA 93550
(805) 272-4827
Copyright (C) 1989/90 Scanlon Enterprises
All Rights Reserved
This version of the SEBFU documentation, software and copyright
supersedes all previous versions of SEBFU.
Specifications subject to change without notice.
We in no way imply a warantty or guarantee that this software
will fit your specific needs or uses.
No part of this manual may be reproduced, transmitted,
transcribed, stored in a retrieval system or translated into any
language (natural or computer), in any form or by any means,
except as described in the licence agreement without the prior
written permission of P. Scanlon/Scanlon Enterprises.
You are hereby granted a limited license to use the software
described herein. The software may be used or copied only in
accordance with the terms of that license.
S E B F U
Version 3.3.0
(C) 1989/90 Scanlon Enterprises
Sebfu first appeared in March of 1989 as the Scanlon Batch File
Utilites, and was distributed as shareware.
The author provides this manual "as is" without warranty of any
kind, either expressed or implied, including, but not limited to,
the particular purpose. The author may make improvements and/or
changes in the product(s) and/or the program(s) described in this
manual at any time.
This product could include technical inaccuracies or
typographical errors. Changes are periodically made to the
information herein; these changes will be incorporated in new
editons fo the publication.
All specifications subject to change without notice.
SEBFU Version 3.0.0 (C) 1989/90 Scanlon Enterprises
L I C E N C E
SEBFU is copyright (C) 1989/90 by Scanlon Enterprises
The owner of this software is hereby granted full use of the uti-
lities on any single user system or on any small Lan system (not
to exceed 5 users). Should any problems occur, the user should
contact us at the above address or phone number, or leave us a
message on PC-LINK (user ID : 33-5941-5682)
The licenced owner may replicate this software as many times as
necessary for purposes of backup, and may share or otherwise
make copies available to others.
SEBFU Version 3.0.0 (C) 1989/90 Scanlon Enterprises
D I S C L A I M E R
Use of this software acknowledges this disclaimer of warranty :
"This program is supplied as-is. Scanlon Enterprises disclaims
all warranties, expressed or implied, including, without limita-
tion, the warranties of merchantability and of fitness of this
program for any purpose. Scanlon Enterprises assumes no liabili-
ty for damages direct or consequential, which may result from the
use of this software."
T R A D E M A R K (S)
MS-DOS is a registered trademark of Microsoft Corporation
PC-DOS is a registered trademark of IBM Corporation
DR-DOS is a registered trademark of Digital Research
WordStar is a registered trademark of MicroPro International Corp
SEBFU Version 3.0.0 (C) 1989/90 Scanlon Enterprises
T A B L E O F C O N T E N T S .... i
Table of contents ........................ i
Acknowledgements ......................... ii
Introduction .............................iii
Requirements ............................. iv
Special Notes ............................ v
Features ................................. 1
List of utilities ........................ 2
Quick Start .............................. 3
About Dos ................................ 4
About Batch Files ........................ 6
Start of Command Usage ................... 9
Page i
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
A C K N O W L E D G E M E N T S
Hundreds of hours of effort went into the development of SEBFU,
and we had lots of help. Special thanks go to:
My sister for her valuable suggestions, for 'proofing' this manu-
al and helping in the debugging process.
Margaret Killeen and her husband Ron Chordigan, with out whom
this software would never have been placed into market.
My Mother for her encouragement and support.
To ALL registered users - THANK YOU - it is only through your
support that additional versions are made possible.
Page ii
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
I N T R O D U C T I O N
This manual describes the use and operation of SEBFU, a set of
batch file utilities, for the IBM/PC and compatible computers.
The manual includes installation instructions, overview of
SEBFU's major features and reference for all of SEBFU'S commands.
SEBFU is a set of batch file utilities, which when combined, of-
fer an improvement over the stand alone Dos COMMAND.COM batch
file interpreter. These utilities will allow the user to detect
and react to many different system environments. SEBFU offers
the novice and experieced users the power to create batch files
to do everything from automating the format process to making
powerful menus'. We have included several batch files to show you
how to use these utilities. To start one, just enter the batch
file name (without the .bat extension) at the Dos prompt.
SEBFU is for: any IBM computer (or compatible) user, who wishes
to make their system easier to use; system integrators, to place
powerful custom menus on turn key systems; Software distributors,
who want easy to install software.
SEBFU is an inexpensive way to obtain the additional power
reqired by todays' system user. If these utilities were
purchased seperately (from other authors) they could easily cost
you over $300.00 ! Thus, for only a fraction of the cost, you
have gotten these utilities, and for less than 50 cents each.
Page iii
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
R E Q U I R E M E N T S
The SEBFU utilities require very little actual memory while
running, as each one is a small COM file, and only one utility at
a time is ever in memory. Thus, our utilities will run on the
following minimum IBM or clone.
IBM OR CLONE with 128K ram
1 floppy drive
any monitor or display type
any keyboard
You will need some text editor or wordprocess to creat batch
files. The editor may be something as simple as the Dos EDLIN
program or as sophisticated as Wordstar (R) Micropro.
We also recommend you have some knowledge of batch files in
general. This information is available in your Dos user manual
or many books commonly available. Some knowledge of using Dos
is also necessary (for those who don't have this knowledge, we
suggest you read the section ABOUT DOS).
We also supply a fairly good BATCH FILE TUTOR, see TUTOR.DOC
NOTE: For those of you with monochrome systems (no color), those
function which allow choices of color, will only give you 4
possible display types, no matter what color you attempt to
choose. These color choices are : Black, white, intense white,
underlined white and blink. The background color may either be
white or black.
Page iv
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
S P E C I A L N O T E S
The following rules apply to SEBFU usage:
(1) When b (or bc) is used to indicate color (background),
the possible color values are between 0 and 7, where:
0 = Black 4 = Red
1 = Blue 5 = Magenta
2 = Green 6 = Brown
3 = Cyan 7 = Gray (light white)
NOTE: Values greater than 7 result in a flashing foreground
color, and the background becomes f-8. IE.. if you enter 9 for
the background (f) then the foreground color blinks and the
background will actually be 9-8=1 or Blue !!
(2) When f (or fc), is used to indicate color (foreground),
the possible color values are between 0 and 15, where:
The first 8 values (0 thru 7) are the same as background
8 = Dark gray 12 = Light red
9 = Light blue 13 = Light magenta
10 = Light green 14 = Yellow
11 = Light cyan 15 = Bright white
NOTE: These values may have different effects on MGA, EGA
or VGA systems. IE... on MGA systems, the user can only display
various intensities of white.
(3) On CGA systems, rows may be no larger than 25 and columns
no wider than 80 (same for MGA). If you are using EGA or VGA
systems, this limit may not apply.
(4) All commands do NOT redirect unless other wise specified
(5) All command line parameters may be upper or lower case,
unless otherwise specified..
Page v
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
F E A T U R E S
SEBFU (version 3.0.0) has over 60 commands which enhance and add
power to your batch file operations. Included are functions to:
maintain menus; retrieve single or multiple keystrokes; check and
control cursor movement; check and control screen colors; check
and control video modes (and pages); check drive status; check
printer status; check for various drivers such as mouse, EMS,
ANSI, etc..; display directory lists and much more.
SEBFU now has a batch file Intrepeter (SEBFI) which makes using
batch files even faster (up to 10 times). Although SEBFI does
not have all of the SEBFU commands, it does have many of them
(the most popular) and includes the standard COMMAND.COM internal
commands, such as ECHO, CLS, TYPE, COPY, IF, EXIST, and more.
Using SEBFI is easy, and screens seem to pop out of nowhere!
Page 1
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
LIST OF UTILITIES (QUICK REFERENCE)
The commands are listed in alphabetical order, and simply state
the syntax and brief description. This document is usuable as a
quick reference to see which command to use.
BEEP sounds the speaker for a very short duration.
Syntax : BEEP n C K
BIGLTR displays up to 10 alpha-numeric characters on the display
Syntax : BIGLTR msg /Fn Bn Pn /An
BOX draws a box of any size, using any of several text graphics
characters available.
Syntax : BOX sr sc er ec /Fn /Bn /Pn /S /Gn /Ac /D
BREAK (DOS function) toggles break on or off
Syntax : BREAK ON/OFF
CALCYR Calculates the difference between 2 dates
Syntax : CALCYR y1 y2 /W
CD [CHDIR] (DOS function) Change directories
Syntax : CD pathname
CDCK checks for the existance of a CD Rom driver
Syntax : CDCK
CDD moves toward the root directory
Syntax : CDD n
CGABORDR changes the border on CGA systems
Syntax : CGABORDR n p
COLOR Sets the screen colors via ANSI.SYS .. Syntax : COLOR
CR Waits for the user to press the enter key. Syntax : CR
DETANSI Tests for the existance of the ANSI.SYS driver.
Syntax : DETANSI
DFREE Checks the amount of space available on a selected drive.
Syntax : DFREE drive variable /M /K /B
DLST Enhanced directory listing utility.
Syntax : DLST file spec /Ln /Rn /Bn /Tn /E list /I list
/X /D /Z /H /C (colors)
Page 2
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
ENVSIZE Tests the Dos environment area for amount of space, or
amount of space remaining.
Syntax : ENVSIZE var /Dn /R
FCHR Fills a selected video area with a selected char. type.
Syntax : FCHR sr sc er ec bc fc p c
FSIZE Gets file size and information requarding drive fit.
Syntax : FSIZE spec /V var list /Dn /F /H /N /A /S /X
/Mx[d:] /E list /I list
FNDHID Displays a list of all files, in the current directory
which have unusual file attributes such as hidden or read only.
Syntax : FNDHID
FUNKEY Waits for the user to press any function key.
Syntax : FUNKEY
GALF Waits for the user to press any alpha key, upper or lower
case. Syntax : GALF var
GCURS Checks the cursor postion. Syntax : GCURS RCV
GDIR Sets a Dos variable equal to the current directory.
Syntax : GDIR var /X
GDRIVE Checks which drive is currently active.
Syntax : GDRIVE var
GETCOLR Checks the screen color at the cursor.
Syntax : GETCOLR /B /VX
GETNUM Waits for any numeric key to be pressed.
Syntax : GETNUM list
GETVER Checks the current Dos version. Syntax : GETVER
GEXT Waits for any extended key input
Syntax : GEXT var /F
GMEM Gets information about Ram (expanded & extended also).
Syntax : GMEM /Dn /V /Cn /T /E /X /Z /A /S
GSMODE Get or set video mode
Syntax : GSMODE /Sn /V
HDTYPE Reports types of hard drives your system can manage.
Syntax : HDTYPE c
INKEY Retrieves any single keystroke, depending upon which
swith(s) have been set. Syntax : INKEY /switch(s)
Page 3
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
INSTR Searches on Dos string for the occurance of a specified
character. Sytnax : INSTR var1 var2 /Bn /Cc /Dn /Sc /X
INVERT Reverses the foreground and background screen colors
without affecting the text.
Syntax : INVERT sr sc er ec /N /Pp
KBTEST Checks for presense of 101 keyboard support.
Syntax : KBTEST /M
KEYSTAT Checks if a key has been pressed.
Syntax : KEYSTAT /CNSIUAKXV
KILL0 deletes all zero length files in a directory
Syntax : KILL0
KSTAT Checks for any keypress
Syntax : KSTAT
LEN Gets the length of the specified Dos variable.
Syntax : LEN var /Vvar /X
LIMCK Tests for the presence of an expanded memory driver.
Syntax : LIMCK V
LINE Draws a line, using single line graphics, of a specified
length. Syntax : LINE /Rn /Cn /Ln /Bn /Fn /S /Gn /Ac /Nn
LNCNT Counts lines in an ascii (text) file
Syntax : LNCNT spec
LOCATE Postions the cursor at the specified row and column.
Syntax : LOCATE r c p
LOG Updates the file LOGIN.LOG with the current login info.
Syntax : LOGIN name spec msg /OI
LST Displays a selected file. Syntax : LST fname
LWRITE Text editor.
Syntax : LWRITE spec
MATH Add or subtract a value from a variable
Syntax : MATH /-n /+n /Vvar /X
MID Finds a selected portion of a Dos variable.
Syntax : MIDSTR s l vname oname /X
MOUSECK Checks for the presence of a mouse driver.
Syntax : MOUSECK
MOVCUR Moves the cursor in the specified direction.
Syntax : MOVCUR UDLRn /Pn
Page 4
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
PAGE Get or set a video page
Syntax : PAGE /Pn /Vvar /X
PATHCK Verifies the current path as that specified.
Syntax : PATHCK name
PFF Sends a formfeed to the PRN device. Syntax : PFF p
PRDY Tests the status of the PRN device. Syntax : PRDY p
PRINTC Sends print codes or special characters to the PRN DEV.
Syntax : PRINTC n[n[n...
PRNSET Resets the PRN device . Syntax : PRNSET p
PSETUP Printer setup utility
Syntax : PSETUP /I /Mn c /Pn
PWRD Password system
Syntax : PWRD /Sn /An /Oa
RESP Gets one full line of text from the user.
Syntax : RESPONSE var /Ln /Bn /Fn /En /X /Ic /D
ROWS Gets the number of video rows
Syntax : ROWS /Vvar /X
SAVEKEY Places one or more characters into the keyboard tyepa-
head buffer. SAVEKEY c[c[c...
SCROLMSG Displays a moving line of text.
Syntax : SCROLMSG message
SDATE Sets the Dos date.
Syntax : SETDATE mm-dd-yyyy /I
SOUND Sounds the speaker at a specifed frequency and duration.
Syntax : SOUND /Dn /Tn
STRING Displays a repetive character on the display.
Syntax : STRING r c b f /P/Sp
SWIDTH Finds the current screen width
Syntax : SWIDTH /Vvar /X
SWPRN Swaps printer ports 1 & 2
Syntax : SWPRN
TC Toggles or sets cursor attributes.
Syntax : TC XOS[10]
TD Displays the time and date
Syntax : TD /Dr c /Tr c /N
Page 5
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
WAIT Pauses batch file execution for specified time
Syntax : WAIT /Sn /Mn /Tt
WDATE Gets the current date
Syntax : WDATE /D /M /Y /W /Vvar /X /A
WINDOW Create or scroll a window
Syntax : WINDOW sr sc er ec /Fc /Bc /Dn /Ln
WRITE Displays a selected line of text.
Syntax : WRITE /Cn /Rn /N /Pn /X /Fc /Bc /D, message
WRITEF Displays a selected file of up to 4K bytes
Syntax : WRITEF fname /Cc /Pp /Sl /Ln /D
WTIME Gets the current time
Syntax : WTIME /H /M /S /Vvar /X /A
XMSCK Checks if an extended memory drive is present.
Syntax : XMSCK
YN Waits for either a Y or N (upper or lower case).
Syntax : YN message /Ic
For more information on any of the above commands, see the
section COMMAND USAGE. The COMMAND USAGE section not only
contains a complete explanation of each function, but also an
example of use.
Page 6
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
Q U I C K S T A R T
This section is devoted to those who are power users and don't
need further elaboration on using our utilities, or for those who
just can't wait to get started.
First, we recommend that you back up your original SEBFU disk.
This can be done at the Dos prompt by following this sequence.
A:_
A:DISKCOPY A: B: {press enter}
{follow screen instructions for DISKCOPY}
or by starting our batch file GO :
A:_
A:GO {press enter}
{select the menu choice for duplicating our disk}
Next, have a copy of our QUICK.DOC print out handy. You can get
one by one of the following sequences :
A:_
A:COPY QUICK.DOC PRN
1 FILE(S) COPIED
A:_
{be sure you have enough paper for the document (5 pages)}
A:_
A:GO {press enter}
{select the menu choice for printing the QUICK.DOC file}
Finally, insert your work disk or other disk you wish to add a
batch file to and start using our utilities.
We suggest also, that you have your Dos user manual handy.
Page 7
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
The following is a detailed usage of each command.
BEEP - Sounds the speaker
Usage : Announce an event end or keystroke error, or any other
time you may need to anounce some event.
Syntax: BEEP /+n /D /KXC
Where: '/+n' is a user specified count (number of beeps) in the
range of 1 thru 9999 (1 less than 10 thousand)
'/D' delays 1 second between beeps
'/K' Beeps for selected count or keystroke
'/KX' Beeps continously till keystroke (no counter)
'/KC' Same as '/K', & clears keystroke on exit
'/KXC' Same as '/KX' & clears keystroke on exit
NOTE: if the program has been tampered with, will exit with an
error code of 255. Errorlevel of 3 if selected count is too
large, or 4 for any other command error.
EXAMPLE 1: BEEP
Just beeps one time
EXAMPLE 2: BEEP /+2
Beeps twice
EXAMPLE 3: BEEP /+2 /D
Beeps twice at 1 second intervals
EXAMPLE 4: BEEP /+4 /K
Beeps 4 times or untill any keystroke
EXAMPLE 5: BEEP /KX
Beeps untill any keystroke
EXAMPLE 6: BEEP /+4 /D /K
Beeps up to 4 times or untill a keystroke, with 1 second delay
between beeps.
Page 8
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
BIGLTR - Displays any of 255 ascii characters on the display, in
large 9 rows by 8 columns. The maximum number of characters
displayed depends on your video system and the number of columns
allowed in the current video mode.
Usage : Banners for store fronts, screen announcing user is away
and for no disturbing, front end for batch files, etc....
Syntax: BIGLTR msg /Fn /Bn /Pn /An
Where: 'msg' is the message to display
'/Fn' the foreground color
'/Bn' the background color
'/Pn' the video page
'/An' Change switch character to 'n'
All switches are optional. If foreground / background colors are
NOT supplied, then the existing colors will be used. If the video
page is NOT supplied, then the current video page is used. The
'/An' switch allows the user to change from the forward slash to
supplied character 'n'.
EXAMPLE 1: BIGLTR H e l l o
Displays 'Hello' at the current cursor position.
EXAMPLE 2: BIGLTR H e l l o /F7 /B1
Same as example 1, except display in white on blue.
EXAMPLE 3: BIGLTR H e l l o /P2
Same as example 1, but puts message on video page 2
EXAMPLE 4: BIGLTR /A,H e l l o,F7 ,B1
Sets switch character to a comma, message same as example 1, with
white on blue.
Page 9
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
CDD - changes directories toward the root by 1 or more levels.
Syntax: CDD [n]
Where: n = number of levels to move toward the root. If 'n' is
NOT included, the default number is 2 levels or the root, which
ever is first. If 'n' = 0 then an errorlevel equal to the number
of levels above the root directory the current directory is.
NOTE: Use CD\ instead of CDD n to get to the root, as there are
fewer keystrokes (only 3) in the Dos 'CD\' method as opposed to a
minimum of 5 using CDD !
EXAMPLE 1: CDD
Moves back toward the root by 2 directories (default).
EXAMPLE 2: CDD 3
Moves back toward the root by 3 directories.
EXAMPLE 3: CDD 0
Reports an errorlevel equal to the current directory level.
Page 10
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
CGABORDR - Sets the CGA border to a selected color.
Syntax: CGABORDR n
Where: n = any value in the range of 0 thru 7. If 'n' is NOT
specified, the border will be set to black.
Please do NOT attempt to use this function on monochrome, EGA or
VGA systems !
EXAMPLE: CGABORDR 1
Sets the CGA border to blue
Page 11
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
COLOR - Sets the display color via ANSI control sequences.
Syntax: COLOR b f
Where: b = background color
f = foreground color
NOTE: This utility is more useful for Dos commands such as ECHO
and TYPE than it is for the SEBFU utilities. COLOR does have the
added advantage of having the selected colors intact after a
batch file has run. Because of this, this function is even
useful from a Dos prompt. COLOR will return an error level of 1
if both colors are NOT specified.
EXAMPLE 1: COLOR 1 7
Sets the screen colors to white on blue
Page 12
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
CR - Waits for the user to press the [Enter] key.
Syntax: CR /Ic
Where : '/Ic' is a request to ignore special exit code 'c',
where 'c' may either be 'C' for ^C (control C) or 'E' for the
escape key. If 'CR' does NOT find this switch, 'CR' will exit
with an errorlevel, other than 0 if escape or ^C are detected
Errorlevels: 255 (0FF) is tamper detection
254 (0FE) is command line error
1 keystroke was CR (ENTER)
2 keystroke was ESCAPE (no '/IE' switch)
3 keystroke was ^C
** NOTE ** you may use the '/Ic' switch twice to stop escape and
^C exits (CR only will exit).
EXAMPLE: CR
Exits if ENTER, ESCAPE OR ^C IS DETECTED
EXAMPLE 2: CR /IE
Exits only if ENTER OR ^C is detected
EXAMPLE 3: CR /IC
Exits only if ENTER OR ESCAPE is detected
EXAMPEL 4: CR /IC /IE
Exits only when ENTER is detected
Page 13
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
BOX - Draws a box at a specified location using the extended
character set of doubleline text characters, optional singleline
text characters or optional selected box character, using
selected screen colors or current colors, using DOS or Bios.
Syntax: BOX sr sc er ec /Fn /Bn /Pn /S /Gn /Ac /D
Where : 'sr' is the top line of the box
'sc' is the top column of the box
'er' is the ending line of the box
'ec' is the ending column of the box
'/Fn' sets the foreground color to 'n'
'/Bn' sets the background color to 'n'
'/Pn' selects page 'n' for the box
'/S' selects single line text characters
(default is double line)
'/Gn' select optional built in box character 'n'
'n' is a decimal value in the range of 0-9
'/Ac' select optional character 'c' as box drawing
character
'/D' use DOS to display (redirection allowed)
** NOTES ** foreground and background colors are optional, if not
entered, BOX uses existing screen colors. The values for 'n'
with switch '/Gn' result in :
0 use character # 254 "■"
1 use character # 176 "░"
2 use character # 177 "▒"
3 use character # 178 "▓"
4 use character # 219 "█"
5 use character # 220 "▄"
6 use character # 223 "▀"
7 use character # 249 "∙"
8 use character # 250 "·"
9 use character # 248 "°"
Use of the '/D' switch will cancel any color effects which may be
selected, and will only put characters on the active video page.
ERRORLEVELS : 255 (0FF) is tamper detection
254 (0FE) command error, incorrect value supplied
253 (0FD) command error, missing value(s)
Page 14
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
BOX {continued}
EXAMPLE 1 : BOX 5 5 10 10
Draws a box, using existing colors, starting on row 5, column 5
thru row 10 column 10, using the default double line text
characters.
EXAMPLE 2 : BOX 5 5 10 10 /F7 /B1
Same as example 1, but uses selected colors of white on blue.
EXAMPLE 3 : BOX 5 5 10 10 /P2
Same as example 1, but uses video page 2
EXAMPLE 4 : BOX 5 5 10 10 /S
Same as example 1, but uses single line text characters
EXAMPLE 5 : BOX 5 5 10 10 /G1
Same as example 1, but uses character #176 for drawing
EXAMPLE 6 : BOX 5 5 10 10 /A*
Same as example 1, but uses character '*' for drawing
EXAMPLE 7 : BOX 5 5 10 10 /D
Same as example 1, but draws box useing DOS instead of Bios
EXAMPLE 8 : BOX ,,10 10
Same as example 1, but starts drawing at current cursor location
Page 15
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
DFREE - Reports number of bytes available on a selected drive.
Syntax : DFREE d: vname /M /K /B
Where : 'd:' is any valid DOS drive letter
'vname' is an optional DOS environment variable name
'/M' Result is megabytes
'/K' Result is Kbytes
'/B' Result is Bytes
ERRORLEVELS : 255 (0FF) is tamper or overflow
other values are the size
** NOTE ** default reporting is bytes
EXAMPLE 1 : DFREE
Reports drive size errorlevel in bytes, active drive
EXAMPLE 2 : DFREE c:
Same as example 1, but for drive C
EXAMPLE 3 : DFREE SIZE
Same as example 1, but result is placed into variable SIZE
EXAMPLE 4 : DFREE /M
Reports drive size in megabytes (0) if less than 1
EXAMPLE 5 : DFREE /K
Reports drive size in Kbytes
Page 16
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
DLST - Enhanced directory listing system. Has lots of features
that make this ideal to use from a batch file.
Syntax : DLST fspec /Ln /Rn /Bn /Tn /E list /I list /X /D /Z /H
/Cf b
Where : 'fspec' is any valid DOS file specification, including
drive and path.
'/Ln' sets left margin to 'n'
'/Rn' sets right margin to 'n'
'/Bn' sets last useable line to 'n'
'/Tn' starts display on line 'n'
'/E list' list of files to exclude from listing
'/I list' list of files to include
'/X' exclude file extensions
'/D' use DOS instead of Bios
'/Z' exit if screen is full (normally pauses)
'/H' include hidden files in list
'/Cf b' foreground color 'f' and background 'b'
** NOTES ** both the include and exclude lists may reside in a
file, use a file name preceded by an '@'
Using DOS instead of Bios allows redirection, great
if you want the list printed or put into a file.
When using the DOS mode, and redirection is on, the
starting line, column and ending lines may NOT be valid
Some file spec must be supplied, we make no
assumptions, and exit if there is none.
ERRORLEVELS : 255 (0FF) is tamper detection
2 no matching files found
3 command error
4 bad color selection
EXAMPLE 1 : DLST *.*
Displays all files, starting on the current cursor line and
column, using existing colors, no directories are listed
EXAMPLE 2 : DLST *.* /L5
Same as example 1, but sets left margin to column 5
EXAMPLE 3 : DLST *.* /R70
Same as example 1, but sets right margin to column 70
EXAMPLE 4 : DLST *.* /B20
Same as example 1, but pauses when display reaches line 20
Page 17
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
DLST {continued}
EXAMPLE 5 : DLST *.* /T5
Same as example 1, but stats display on line 5
EXAMPLE 6 : DLST *.* /E *.ASM
Same as example 1, but excludes any ASM files from list
EXAMPLE 7 : DLST *.* /E @EXCLD.LST
Same as example 6, but exclude list is in file EXCLD.LST
EXAMPLE 8 : DLST *.COM /I *.EXE
Displays only COM and EXE files
EXAMPLE 9 : DLST *.COM /I @INCLD.LST
Displays COM files, and list of file types in INCLD.LST
EXAMPLE 10 : DLST *.COM /X
Displays only COM files, without extensions. This is very
useful to get more files per screen / list.
EXAMPLE 11 : DLST *.* /D
Same as example 1, but shows directories as well
EXAMPLE 12 : DLST *.* /Z
Same as example 1, but exits if last line is reached
EXAMPLE 13 : DLST *.* /H
Same as example 1, but includes any hidden files
EXAMPLE 14 : DLST *.* /C7 1
Same as example 1, but display is in white on blue
Page 18
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
ENVSIZE - Gets current environment size or space left.
Syntax : ENVSIZE var /Dn /R
Where : 'var' is an optional variable to place results in
'/Dn' divides result by 'n' before setting var or error
'/R' request for bytes remaining instead of total
** NOTES ** If 'var' is NOT included, result is an errorlevel
equal to the size, divided by optional '/Dn'. 'n' in the '/Dn'
switch must be in the range of 1 thru 65535 . Multiple switches
may be used, IE /Dn + /R (ENVSIZE /D2 /R)
ERRORLEVELS : 255 (0FF) tamper detection / command error
0 - 254 is size if 'var' is NOT specified
EXAMPLE 1 : ENVSIZE
Returns an errorlevel of 0 thru 254 for size, or 255 for overflow
EXAMPLE 2 : ENVSIZE SIZE
Puts size of environment into variable SIZE
EXAMPLE 3 : ENVSIZE /D2
Returns an errorlevel of 0 thru 254 for the size, after first
dividing by 2, IE... size is 400 bytes, return is 200 . If
errorlevel is 255, then result is overflow
EXAMPLE 4 : ENVSIZE /R
Returns an errorlevel of 0 thru 254 for bytes remaining
Page 19
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
FCHR - Fill screen area with selected color and/or character
Syntax : FCHR sr sc er ec bc fc p n
Where : 'sr' is the start row
'sc' is the start column
'er' is the ending row
'ec' is the ending column
'bc' is the background color
'fc' is the foreground color
'p' is the video page
'n' is an optional character to place on screen
ERRORLEVELS : 255 (0FF) tamper detection or bad command
EXAMPLE 1 : FCHR 5 5 10 10 1 7
Fills the screen area from line 5, column 5 thru line 10 column
10 with white on blue
EXAMPLE 2 : FCHR 5 5 10 10 1 7 2
Same as example 1, but does page 2 instead of active
EXAMPLE 3 : FCHR 5 5 10 10 1 7 2 A
Same as example 2, but fills area with the character 'A'
Page 20
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
FSIZE - Finds the size of specified files, plus checks if
selected files will fit onto an optional selected drive or if
they will fit a specified size requirement.
Syntax : FSIZE spec /V vars /Dn /F /H /N /A /S /X /Mx[d:]
/E list /I list
Where : 'spec' is any legal DOS file specification including
drive and path.
'/V vars' select one or more variables to put results
into (up to 4).
'/Dn' First divides the size by 'n' before
returning the results.
'/F' Results are based on a standard floppy drive
where 1 cluster is 512 bytes.
'/H' Results based on a standard hard drive with
2048 bytes per cluster (4 sectors @ 512 bytes each).
'/N' Returns only then number of matches
'/A' Sets all default variables (hard drive = HDRV,
floppy = FLPY, number of matches = CNTR & exact size = SIZE)
'/S' Displays results on screen
'/X' Variables are put into parent instead of
master environment area.
'/Mx' Compares files size to value 'x'
'/Md:' Checks if files will fit onto drive 'd:'
'/E list' Excludes files from test
'/I list' Additional files to include
** NOTES ** This is a very powerful, yet flexable system. Odd
drive sizes can be obtained by using the '/Dn' switch with or
instead of either '/H' or '/F' ! The 'list' may be a file name,
simply begin the name with an '@' character.
ERRORLEVELS : 255 (0FF) is tamper detection or command error
0 - 254 are results, if variable is NOT used
ERRORLEVELS WHEN VARS ARE USED
10 file I/O error
9 not enough ram
8 not enough environment space
7 path not found
6 divisor error
5 device error
4 exclude file not found (preceded by '@')
3 include file not found
2 drive for file error 3 & 4 not found
1 no matches
0 everything OK
ERRORLEVESL WHEN THE '/M' switch is used
3 drive problem
2 size matches
1 file sizes are larger than match size
0 match size is larger than file sizes
Page 21
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
FSIZE {continued}
EXAMPLE 1 : FSIZE *.*
Returns an errorlevel equal to the file sizes, 255 if overflow
EXAMPLE 2 : FSIZE *.* /V
Returns file sizes in variable 'SIZE'
EXAMPLE 3 : FSIZE *.* /V SIZ1
Returns file sizes in variable 'SIZ1'
EXAMPLE 4 : FSIZE *.* /V SIZ1 SIZ2 SIZ3 SIZ4
Returns all 4 size types as follows :
SIZ1 = bytes required for standard floppy
SIZ2 = bytes required for standard hard drive
SIZ3 = number of matches
SIZ4 = actual file sizes
EXAMPLE 5 : FSIZE *.* /D2
Returns an errorlevel equal to the sizes divided by 2, IE.. sizes
equal 400, result returned is 200
EXAMPLE 6 : FSIZE *.* /F
Returns an errorlevel equal to the size required to fit on a
floppy drive (512 bytes min), thus probably an errorlevel of 255
EXAMPLE 7 : FSIZE *.* /D1000 /F
Returns an errorlevel equal to the number of Kbytes required on a
floppy.
EXAMPLE 8 : FSIZE *.* /D1000 /H
Same as example 7 but for a hard drive
EXAMPLE 9 : FSIZE *.* /N
Returns an errorlevel equal to the number of matches
EXAMPLE 10 : FSIZE *.* /S
Displays the resultant size, IE... size is 20K, then display is
20000 !
Page 22
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
FSIZE {continued}
EXAMPLE 11 : FSIZE /V /X
Same as example 2, but uses parent instead of master environment
EXAMPLE 12 : FSIZE *.* /M1000
Returns an errorlevel based on match, see ERRORLEVELS above
EXAMPLE 13 : FSIZE *.* /MC:
Returns an errorlevel based on fit, see ERRORLEVELS above
EXAMPLE 14 : FSIZE *.* /E *.COM
Same as example 1, except all COM files are excluded from results
EXAMPLE 15 : FSIZE *.* /E @EXCL.LST
Same as example 14, but list is in file EXCL.LST
EXAMPLE 16 : FSIZE *.COM /I *.EXE
Same as example 1, but for COM and EXE files only
EXAMPLE 17 : FSIZE *.COM /I @INCL.LST
Same as example 16, but list is in file INCL.LST
EXAMPLE 18 : FSIZE
Same as example 1 !!
Page 23
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
FUNKEY - Waits for any function key, escape or Enter
Syntax : FUNKEY
ERRORLEVELS : 255 (0FF) For tamper
27 for escape
13 for enter
1 thru 10 for function keys 1 thru 10
** NOTES ** Shifted, Control or Alternate function keys are NOT
responded to. No parameters are required
Page 24
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GALF - Waits for any alfa keystroke
Syntax : GALF var
Where : 'var' is any legal DOS environment variable
** NOTES ** GALF forces all alfa keys to their uppercase value.
Page 25
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GCURS - Gets row and / or column of current cursor on current
video page.
Syntax : GCURS RVX
Where : 'R' returns errorlevel equal to current row
(default is column)
'V' sets the 2 variables 'ROW' & 'COL' equal to the
current cursor location
'X' sets the 2 vaiables as above, but in the parent
environment area instead of the master.
ERRORLEVELS : 255 (0FF) for tamper
254 for command error
EXAMPLE 1 : GCURS
Sets the errorlevel equal to the cursor column
EXAMPLE 2 : GCURS R
Sets the errorlevel equal to the cursor row
EXAMPLE 3 : GCURS V
Sets the 2 variables (above) in the master environment
EXAMPLE 4 : GCURS X
Sets the 2 variables (above) in the parent environment
Page 26
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GDIR - recovers the current directory into a DOS environment
variable (optional name or default)
Syntax : GDIR var /X
Where : 'var' is any legal environment name
'/X' instructs GDIR to use the parent environment
(default is the master)
ERRORLEVELS : 255 (0FF) is tamper detect
EXAMPLE 1 : GDIR
Sets the default environment variable 'DIR' to the current
directory.
EXAMPLE 2 : GDIR ODIR
Sets the varialbe ODIR equal to the current directory
EXAMPLE 3 : GDIR /X
Same as example 1, but sets the parent environment area.
GDRIVE - Finds out via errorlevel which drive is currently active
Syntax : GDRIVE
ERRORLEVELS : 0 THRU 25, where 0 = A, 1 = B, etc....
255 (0FF) = Tamper detection
Page 27
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GETCOLR - Finds the current screen color at the cursor location
Syntax : GETCOLR /B /VX
Where : '/B' returns an errorlevel coresponding to the background
color, default is foreground
'/V' puts the color into 2 variables 'FCOL' for
foreground and 'BCOL' for background.
'/X' uses parent instead of master environment area
ERRORLEVELS : 255 (0FF) for tamper
1 thru 16 for the color
EXAMPLE 1 : GETCOLR
Sets the errorlevel to 1 thru 16 for the foreground color
EXAMPLE 2 : GETCOLR /B
Same as example 1, except for background color
EXAMPLE 3 : GETCOLR /V
Sets the 2 variables (above) to foreground & background values
Page 28
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GETNUM - Waits for decimal keys 0 thru 9, ESCAPE
Syntax : GETNUM key list
Where : 'key list' is a list of decimal keys you wish to respond
to (IE...0-9).
ERRORLEVELS : 255 (0FF) for tamper
0-9 for decimal keys
27 for escape
EXAMPLE 1 : GETNUM
Responds to all values (0-9) + escape
EXAMPLE 2 : GETNUM 01
Responds only to 0 or 1 + escape
EXAMPLE 3 : GETNUM 2345
Responds only to 2,3,4 or 5 + escape
EXAMPLE 4 : GETNUM 2468
Responds only to 2,4,6 or 8 + escape
GETVER - retrieves the current DOS version
Syntax : GETVER MV
Where : 'M' selects minor version, default is major
'V' puts complete version ID into variable 'VER'
** NOTES ** Major version of DOS 3.2 would result in an
errorlevel of 3 and a minor version of errorlevel 2
ERRORLEVELS : 255 (0FF) tamper
0-254 version
Page 29
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GEXT - waits for any extended keystroke
Syntax : GEXT var /F
Where : 'var' is any environment variabel
'/F' selects the special errorlevels for function keys
where : 1 thru 10 are the function keys 1 - 10
11 thru 20 are the shifted function keys
21 thru 30 are the alternate function keys
and 31 thru 40 are the control function keys
ERRORLEVELS : 255 (0FF) tamper detection
0-254 for scan code of key press
** NOTES ** keys other than extended keys are ignored, except
escape and control C, which return errorlevel 255
EXAMPLE 1 : GEXT
Waits till any extended key is pressed, returning the scan code
as an errorlevel.
EXAMPLE 2 : GEXT KEY
Same as example 1, but scan code is passed in variable KEY
EXAMPLE 3 : GEXT /F
Set switch setting '/F' for special values !!
Page 30
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GMEM - Checks size of all types of memory, standard (to 640K),
extended and expanded.
Syntax : GMEM /Dn /V /Cn /T /E /X /Z /A /S
Where : '/Dn' divides size by 'n' before passing results
'/V' sets 3 variables to appropriate sizes, where
MEM is standard, EXP is expanded & EXT is extended
'/Cn' Get comparision to value 'n' (see errorlevels)
'/T' Gets total instead of default remaining
'/E' Gets Expanded instead of default standard
'/Z' Gets Extended instead of default standard
'/X' Uses parent instead of master environment
'/A' Get all values (use with '/V' switch)
'/S' Get standard size (default)
ERRORLEVELS : 255 (0FF) is tamper detect or overflow
0-254 is ram size (use '/Dn' to get size into
managable chunks for errorlevels, IE... 'n' = 1000 for Kbytes)
When using '/Cn', errorlevels are :
2 if ram size is greater than match value
1 if ram size is less
0 if ram size is equal
EXAMPLE 1 : GMEM
Checks amount of system ram available
Will always result in an errorlevel of 255, no one has memory
less than 64K ! (probably not less than 256K)
EXAMPLE 2 : GMEM /D1000
Errorlevel is set to ram (standard) remaining in kbytes.
IE...64000 is 64
EXAMPLE 3 : GMEM /V
Sets above environment variables to ram remaining, standard,
expanded and extended.
EXAMPLE 4 : GMEM /C64000
Tests if ram remaining is 64K, (see errorlevels)
Page 31
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GMEM {continued}
EXAMPLE 5 : GMEM /T
Tests standard ram size (total), this entry will always result in
an errorlevel of 255 (overflow), no system has only 255 bytes.
Use this switch with the divide switch '/Dn' to get meaningful
results, IE... GMEM /D1000 /T
EXAMPLE 6 : GMEM /E
Tests expanded ram size (available)
EXAMPLE 7 : GMEM /X
use with the '/V' option to place variables into the parent
envirnment instead of the master.
EXAMPLE 8 : GMEM /Z
Tests extended ram size (available)
EXAMPLE 9 : GMEM /A
Returns results for all ram areas, and must be used with '/V'
EXAMPLE 10 : GMEM /S
Same as example 1
EXAMPLE 11 : GMEM /T /D1000 /E
Returns the total of expanded ram in 1K chunks, IE... if expanded
ram total is 284K then the errorlevel will be 284
Page 32
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
GSMODE Checks or sets the video mode
Syntax : GSMODE /Sn /V
Where : '/Sn' sets the video mode to 'n' (value)
'/V' puts results of check into variable 'MODE'
ERRORLEVELS : 255 (0FF) is tamper detect
0-254 is mode, when checking
EXAMPLE 1 : GSMODE
Returns the current mode as an errorlevel
EXAMPLE 2 : GSMODE /S7
Sets the video into monochrome mode
EXAMPLE 3 : GSMODE /V
Returns the current mode in variable 'MODE'
Page 33
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
HDTYPE - Displays a list of possible hard drives your system
supports. On XT systems this list is usually 2 drives, on AT's,
this list is usually 40 entries.
Syntax : HDTYPE n
Where : 'n' is a character to use to flag the entry which matches
the drive which HDTYPE determines you currently have installed.
If you have 2 drives, and both are different, the HDTYPE
determines this for the first drive (usually C).
EXAMPLE : HDTYPE *
Will list possible drives your system supports, showing which
type is currently installed, by flagging it's entry with the
selected character '*'.
** NOTE ** the listing may be redirected to your printer by using
the following : HDTYPE * > PRN
Page 34
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
INSTR - is used to find the position of a selected character
within an environment variable.
Syntax : INSTR var out /Bn /Cc /Dn /Sc /X
Where : 'var' is the environment variable to find a character in
'out' is an optional variable to put the resultant
location into.
'/Bn' Start search at postion 'n', default is 1
'/Cc' Search for character 'c', you must have this. 'c'
may also be a string (more than one character). User may use the
alternate '/Dn' switch, but one or the other must be supplied.
'/Dn' Search for character 'n', which is the ascii value
of the character to search for.
'/Sc' Use this when search string needs to use a forward
slash or other character. 'c' is the new switch indicator
'/X' Use parent environment instead of master
ERRORLEVELS : 255 (0FF) is tamper detect
129 if selected start was too long
128 if character (or string) was NOT found
0-127 for character (or string) position
EXAMPLE 1 : INSTR SAMPLE /CA
Will return an errorlevel equalt to the position (1st occurance)
of the character 'A' in varialbe SAMPLE. (See ERRORLEVELS for
other possible results)
EXAMPLE 2 : INSTR SAMPLE RESULT /CA
Same as example 1, but result is place into variable 'RESULT'
EXAMPLE 3 : INSTR SAMPLE /B5 /CA
Same as example 1, but start is position 5 in 'SAMPLE'
EXAMPLE 4 : INSTR SAMPLE /D65
Same result as example 1 (we are using decimal value for 'A')
EXAMPLE 5 : INSTR SAMPLE /S* */
Sets delimiter to an asteric, then searches variable 'SAMPLE' for
the 1st occurance of a forward slash.
EXAMPLE 6 : INSTR SAMPLE /V /CA
Same as example 1, but we use parent environment, not master.
Page 35
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
INVERT - Reverses foreground & background colors on a selected
portion of the video.
Syntax : INVERT sr sc er ec /N /Pp
Where : 'sr' is the start row
'sc' is the start column
'er' is the ending row
'ec' is the ending column
'/N' select no blink option (if foreground is an
intensified color, value larger than 7)
'/Pp' Video page
ERRORLEVELS : 255 for tamper detect
1 for wrong video mode
EXAMPLE 1 : INVERT 1 1 25 80
Simply reverses foreground & background color on entire screen
EXAMPLE 2 : INVERT 1 1 25 80 /N
Same as example 1, but detects extended colors
EXAMPLE 3 : INVERT 1 1 25 80 /P2
Same as example 1, but on video page 2
Page 36
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
KBTEST - Checks bios for 101 keyboard support
Syntax : KBTEST /M
Where : '/M' displays the results
ERRORLEVELS : 255 (0FF) for tamper
1 for yes
0 for no
KILL0 - deletes all 0 length (empty) files in the current
directory.
Syntax : KILL0
ERRORLEVELS : 255 (0FF) for tamper
Page 37
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
KEYSTAT - Checks the status of key control flags, such as shift
state, caps lock, etc...
Syntax : KEYSTAT /CNSIUAKXV
Where : 'C' tests for caps lock
'N' tests for num lock
'S' tests for scroll lock
'I' tests for insert mode
'U' tests for shift key
'A' tests for an alt key
'K' tests for control keys
'V' use varialbes, where 'CAPS' is caps lock, 'NUM' is
num lock, 'SCROLL' is scroll lock, 'INSERT' is insert mode,
'SHIFT' is a shift key, 'ALT' is an alt key, 'CONTROL' is a
control key.
'VX' use parent environment instead of master with above
ERRORLEVELS : 255 (0FF) is tamper
128 is insert on
64 is Caps lock
32 is Num lock
16 is Scroll lock
8 is Alt key
4 is Control key
2 is Left shift
1 is right shift
errorlevels between these values indicate a combination of
control key states, IE... 3 = right shift & left shift
48 = Scroll lock + Num lock
EXAMPLE 1 : KEYSTAT
Checks state of all keys (see above errorlevels)
EXAMPLE 2 : KEYSTAT /C
Checks state of only the caps lock, errorlevel is 1=on, 0=off
This applies to switches N,S,I,U,A & K when used seperately
EXAMPLE 3 : KEYSTAT /V
Sets environment variables as per above under "Where"
EXAMPLE 4 : KEYSTAT /VX
Same as 3, but uses parent environment
Page 38
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
KSTAT - checks if any key has been pressed
Syntax : KSTAT
ERRORLEVELS : 255 (0FF) tamper detect
2 for extended key
1 for typewriter keys
0 for no key
LEN - finds the lenght of a variable
Syntax : LEN var /Vvar /X
Where : 'var' is the variable to get the length of
'/Vvar' variable to place results into
'/X' use parent for opertation
EXAMPLE 1 : LEN PATH
Sets an errorlevel equal to the length of PATH
EXAMPLE 2 : LEN PATH /VLEN
Puts length of PATH into variable LEN
EXAMPLE 3 : LEN PATH /VLEN /X
Same as example 2, but use parent environment
LMCHK - Check for expanded memory manager
Syntax : LMCHK V
Where : 'V' reports the version number
EXAMPLE 1 : LMCHK
Reports an errorlevel of 1 if the driver is installed
or 0 if not
EXAMPLE 2 : LMCHK V
Reports the version number of the expanded mem manager.
Page 39
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
LINE - draws a line using text graphics
Syntax : LINE /Rn /Cn /Ln /Bn /Fn /Pn /S /Gn /Ac /Nn /D
Where : '/Rn' sets the video line
'/Cn' sets the video column to start
'/Ln' length of line
'/Bn' Background color
'/Fn' Foreground color
'/Pn' video page
'/S' Use single line graphics (double line is default)
'/D' Use DOS for output
'/Gn' Select graphics type 'n' (list below)
'/Ac' Use graphics character 'c'
'/Nn' Use graphics character, ascii value of 'n'
GRAPHICS TYPES WITH OPTION 'G' :
0 = Double line
1 = "░" ascii 176
2 = ascii 177
3 = ascii 178
4 = ascii 219
5 = ascii 220
6 = ascii 223
7 = Single line
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) bad command
253 (0FD) overflow (incorrect value)
252 (0FC) wrong video mode
** NOTE ** Default row & column are cursor location, default
length of line is 1 character, colors are optional, and if
excluded, we use the current screen colors. Default line
character is the double line character "═" (205 ascii).
Page 40
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
LINE {continued}
EXAMPLE 1 : LINE
Draws a text line using the double line text character, starting
at the current cursor location, and displaying one character,
using existing colors.
EXAMPLE 2 : LINE /R5
Same as example 1, but line is on row 5.
EXAMPLE 3 : LINE /C5
Same as example 1, but line starts at column 5
EXAMPLE 4 : LINE /L5
Same as example 1, but line is 5 characters long
EXAMPLE 5 : LINE /F7 /B1
Same as example 1, but character is white on blue
EXAMPLE 6 : LINE /P2
Same as example 1, but function takes place on page 2
EXAMPLE 7 : LINE /S
Same as example 1, but text character used is the single line
character "─", ascii 196.
EXAMPLE 8 : LINE /G1
Same as example 1, but uses the text character ascii 176
EXAMPLE 9 : LINE /A*
Same as example 1, but uses the text character '*'
EXAMPLE 10 : LINE /N95
Same as example 1, but uses the text character "_", ascii 95
Page 41
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
LNCNT - counts CR delimited lines in a text file
Syntax : LNCNT spec
Where : 'spec' is any valid DOS drive, path & file name
Results are always displayed on screen
LOCATE - Positions the video cursor
Syntax : LOCATE r c p
Where : 'r' is the video row
'c' is the video column
'p' is the video page
ERRORLEVELS : 255 (0FF) for tamper detection
253 (0FD) for too large a value
** NOTE ** commas may be used as place holders for options, IE..
LOCATE ,,p is a valid entry
EXAMPLE 1 : LOCATE 1 1
Positions the cursor on line one column 1, active video page
EXAMPLE 2 : LOCATE 1 1 2
Same as example 1, but on video page 2
EXAMPLE 3 : LOCATE ,5 2
Same as example 2
EXAMPLE 4 : LOCATE 1,,2
Same as example 2
Page 42
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
LOG - A system logging utility. Helps in determining system usage
Syntax : LOG uname fname msg /OI
Where : 'uname' is the user name (person logging in), and is NOT
optional, that is, it must be supplied.
'fname' is the logging file and defaults to LOG.DTA
'msg' is any optional message to add to the log file
'/OI' select 'O' = out, or 'I' = in, the result of this
switch is placeing the current time and date into the logging
file or default file LOG.DTA the date is entered in a 12 hour
format, followed by the AM/PM indicator.
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) user name NOT supplied
253 (0FD) bad command line
252 (0FC) file not found, or bad name
251 (0FB) message or log swith missing
** NOTE ** either a message or the '/OI' swith must be specified,
or an errorlevel 251 is generated. When using the '/OI' switch,
use only one letter, either 'O' or 'I', IE... /O or /I, not /OI.
Using the /OI switch puts the date into the file in the format
hh:mm AM/PM IE... 08:10AM . Also the date is preceded by the day
of week IE... Wednesday June 1,1999
EXAMPLE 1 : LOG PAUL /I
Puts the data line 'PAUL logged in at "time" on "date"'
EXAMPLE 2 : LOG PAUL LOG.IN /I
Same as example 1, but file used is LOG.IN
EXAMPLE 3 : LOG PAUL LOG.IN LOTUS /I
Same as example 1, but message LOTUS is added
** using the example type, the user must specify the logging file
Page 43
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
FLST - file viewing / browser utility. System requires text mode
Syntax : FLST fname
Where : 'fname' is any valid DOS drive, path and file name
ERRORLEVELS : 255 (0FF) is tamper
254 (0FE) no file specified
253 (0FD) file not found
252 (0FC) file I/O problem (can't read)
251 (0FB) not text mode
USAGE : Function key 1 is HELP (Usage information)
Function key 2 is print current screen
Function key 3 is print all of file
Function key 10 is exit
Escape is exit
Page up scrolls the file down a page
Page down scrolls the file up a page
Cursor down scrolls the file up a line
Cursor up scrolls the file down a line
HOME puts view at top of file
END puts view at bottom of file
Page 44
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
MID - put part of one environment variable into another
Syntax : MID s l var1 var2 /X
Where : 's' is the start of the string to extract
'l' is the number of bytes to extract
'var1' is the variable to extract from
'var2' is the resultant variable
'/X' switch to use the parent instead of master
environment area.
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) one (or both) of the variables are NOT
included on the command line (both are required).
253 (0FD) out of environment space
252 (0FC) 's' or 'l' are incorrect value(s)
251 (0FB) 'var1' not found
** NOTE ** variable 1 must exist, we can't extract from the air.
's' and or 'l' may be omitted by using the comma delimiter, see
the examples below.
EXAMPLE 1 : MID 1 1 PATH PTH
Puts the 1 character in the PATH variable into the PTH variable
EXAMPLE 2 : MID 1 1 PATH PTH /X
Same as example 1, but uses the parent environment
EXAMPLE 3 : MID , 1 PATH PTH /X
Same as example 1, note the comma place holder
EXAMPLE 4 : MID , , PATH PTH /X
Same as example 3, 2 place holders
Page 45
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
MOUSECK - checks if the mouse driver is loaded
Syntax : MOUSECK
ERRORLEVELS : 255 (0FF) tamper
1 for installed
0 for NOT installed
MOVCUR - a little like the locate utility, but positions the
cursor relative to its current position.
Syntax : MOVCUR dir_amt /Pn
Where : 'dir' is the cursor direction and may be 'U' for up, 'D'
for down, 'L' for left or 'R' for right, any other character will
result in an error.
'amt' the number of lines / columns to move the cursor
'/Pn' use page 'n'
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) not next mode
EXAMPLE 1 : MOVCUR U
Moves the cursor up one line (notice we didn't include a value,
'amt' is optional, and defaults to one position)
EXAMPLE 2 : MOVCUR U2
Moves cursor up 2 lines.
EXAMPLE 3 : MOVCUR U2 /P2
Moves the cursor up 2 lines on video page 2
EXAMPLE 4 : MOVCUR D
Move cursor down one line
EXAMPLE 5 : MOVCUR L
Move cursor left one column
EXAMPLE 6 : MOVCUR R
Move cursor right one column
Page 46
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
PAGE - Select or set a video page (CGA, EGA, VGA)
Syntax : PAGE /Pn /Vvar /X
Where : 'Pn' sets video page 'n', default is get page into an
errorlevel.
'/Vvar' puts the active page number into variable 'var'
'/X' use with above to use parent environment, default
is the master environment.
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) bad command
253 (0FD) not in text mode (no pages in graphics)
1-200 video page number
EXAMPLE 1 : PAGE
Returns an errorlevel equal to the page number (we doubt if any
system has a page greater than 32, but then who knows ?)
EXAMPLE 2 : PAGE /P2
Sets system to video page 2
EXAMPLE 3 : PAGE /VPAGE
Puts the active page number into variable PAGE
EXAMPLE 4 : PAGE /VPAGE /X
Same as example 3, but uses the parent environment
Page 47
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
PATHCK - check if a specified path exists
Syntax : PATHCK spec
Where : 'spec' is any valid drive and path
ERRORLEVELS : 255 (0FF) tamper
1 path exists
0 path doesn't exist
EXAMPLE : PATHCK DOS
If the path DOS exists,then errorlevel 1 is set, else 0
PFF - form feed to printer
Syntax : PFF p
Where : 'p' is any valid printer port (usually 1-3)
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) invalid port number
5 printer busy
4 printer out of paper
3 printer off line / not selected
2 printer I/O error
1 port time out, printer off ??
PRDY - Test printer port status
Syntax : PRDY p
Where : 'p' is any valid printer port (usually 1-3)
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) invalid port number
5 printer busy
4 printer out of paper
3 printer off line / not selected
2 printer I/O error
1 port time out, printer off ??
Page 48
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
PRINTC - send ascii characters which can not be directly placed
on a command line (IE.. < > | etc...)
Syntax : PRINTC n...nx
Where : 'n' thru 'nx' are a list of ascii values seperated by
a space or comma
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) invalid port number / command line
5 printer busy
4 printer out of paper
3 printer off line / not selected
2 printer I/O error
1 port time out, printer off ??
EXAMPLE 1 : PRINTC 27 80
Send printer control sequence ESCAPE 'M', usually being the
sequence to select the PICA font set.
EXAMPLE 2 : PRINTC 15
usually puts a printer into compressed font mode
EXAMPLE 3 : PRINTC 60
Sends the character '<', which DOS filters from a command line
PRNSET - Hard reset for a printer port
Syntax : PRNSET p
Where : 'p' is any valid printer port (usually 1-3)
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) invalid port number
5 printer busy
4 printer out of paper
3 printer off line / not selected
2 printer I/O error
1 port time out, printer off ??
Page 49
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
PWRD - Password system
Syntax : PWRD /Sn /An /Oa
Where : '/Sn' Set new password 'n'
'/An' Set new attempt level to 'n'
'/Oa' Set new action to 'a'
'a' may be 'E' to exit with errorlevel
'R' to reboot system
'H' to halt computer (user must reboot
by hardware reset, ^Alt_Del does
not work !)
ERRORLEVELS : 255 (0FF) tamper
254 (0FE) bad command line
253 (0FD) Not enough ram to load copy of program
252 (0FC) File I/O problem
** NOTE ** switches become valid only when the existing password
has correctly been entered. Default password is SEBFU (all caps).
Default attempt level is 3 (3 tries), max is 32. Default action
is to exit with errorlevel (1) invalid password, 0 is ok. The new
password may be entered in upper and lower case, characters will
NOT be translated to uppercase. PSWD does NOT display the
characters typed, but displays the block character for each
keystroke, so the user has an idea of how many keystrokes have
been entered.
Page 50
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
RESP - General purpose input routine, gets keystrokes untill
keystoke is the ENTER key.
Syntax : RESP var /Ln /Fn /Bn /En /X /Ic /D
Where : 'var' any environment variable name (must be supplied)
'/Ln' Max keystrokes permitted 'n', max is 127
(default is 80)
'/Fn' Foreground color 'n'
'/Bn' Background color 'n'
'/En' Set echo level, 'n'=0 for normal echo
'n'=1 for no echo
'n'=2 for display ascii 219 (block)
for each keystroke
'/X' Use parent environment for 'var'
'/Ic' Ignore either ESCAPE 'c'='E' or control C 'c'='C'
'/D' Display via DOS instead of Bios
ERRORLEVELS : 255 (0FF) is tamper
254 (0FE) bad command line
253 (0FD) user aborted with escape key
252 (0FC) user aborted with ^C
251 (0FB) NOT in text mode
250 (0FA) No string (CR only)
** NOTE ** RESP allows exit with escape or ^C, unless option
switch '/Ic' is used. this switch may be used twice to stop both
the escape and ^C keys from affecting an exit.
Page 51
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
RESP {continued}
EXAMPLE 1 : RESP RESP
use existing colors to get up to 80 characters into RESP
EXAMPLE 2 : RESP RESP /L5
use existing colors to get up to 5 characters into RESP
EXAMPLE 3 : RESP RESP /F7 /B1
Same as example 1, but echos keystrokes in white on blue
EXAMPLE 4 : RESP RESP /E1
Same as example 1, but cursor does NOT move with keystrokes
EXAMPLE 5 : RESP RESP /E2
Same as example 4, but ascii character 219 is displayed instead
of actual keystroke.
EXAMPLE 6 : RESP RESP /X
Same as example 1, but uses parent environment.
EXAMPLE 7 : RESP RESP /IE
Same as example 1, but will ignore ESCAPE key stroke
EXAMPLE 8 : RESP RESP /IC
Same as example 1, but will ignore ^C key stroke
EXAMPLE 9 : RESP RESP /D
Same as example 1, but uses DOS for display instead of Bios
Page 52
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
ROWS - Gets number of rows allowed on display
Syntax : ROWS /Vvar /X
Where : '/Vvar' sets optional variable 'var', or default variable
'ROW' to the number of rows available.
'/X' used with above switch forces ROWS to use the
parent environment instead of the master.
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) for command error
1 thru 200 for possible max rows
0 if using variable
EXAMPLE 1 : ROWS
Returns an errorlevel between 1 and 200 for the number of rows
EXAMPLE 2 : ROWS /V
Sets variable 'ROW' to the number of rows
EXAMPLE 3 : ROWS /VROWS
Same as example 2, but variable is ROWS
EXAMPLE 4 : ROWS /V /X
Same as example 2, but uses the parent environment
Page 53
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
SAVEKEY - Places characters into the type-ahead buffer
Syntax : SAVEKEY c...cx
Where : 'c' thru 'cx' are the characters to put into the keyboard
type-ahead buffer.
ERRORLEVELS : 255 (0FF) is tamper
** NOTE ** ascii values may be entered instead, starting the
string with a forward slash '/' followed by a string of ascii
values with a space between each value. IE.. /65 places the
letter 'A' into the keyboard buffer. The number of characters
permitted is limited by DOS to 120 characters, or the size of
your type-ahead buffer, which is usually 16 characters.
SCRLMSG - displays a message string, which constantly scrolls
from right to left.
Syntax : SCRLMSG msg
Where : 'msg' is any string of characters permitted on a command
line by DOS. Must have at least 2 characters, and not more than
will fit across one line.
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) video not in text mode
253 (0FD) message entry error
Page 54
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
SDATE - will set the DOS date to a selected value
Syntax : SDATE mm-dd-yy /I
Where : 'mm' is the month
'dd' the day of month
'yy' the year
'/I' allows the user to use an alternate date pattern
of dd-mm-yy.
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) command error
EXAMPLE 1 : SDATE 01-25-99
Sets the DOS date to Jan. 25, 1999
EXAMPLE 2 : SDATE 01-25-1999
Same as example 1
EXAMPLE 3 : SDATE 25-01-99 /I
Results the same as example 1 (internation date string)
Page 55
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
SOUND - generic noise maker
Syntax : SOUND /Dn /Tn
Where : '/Dn' sets the duration to value 'n', with a default of 1
second or value of 5
'/Tn' sets the tone to value 'n', default is value 10
ERRORLEVELES : 255 (0FF) tamper
254 (0FE) command error
SWIDTH - gets the screen width (number of columns)
Syntax : SWIDTH /Vvar /X
Where : '/Vvar' sets optional variable 'var', or default variable
'COL' to the number of rows available.
'/X' used with above switch forces ROWS to use the
parent environment instead of the master.
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) for command error
1 thru 200 for possible max columns
0 if using variable
EXAMPLE 1 : SWIDTH
Returns an errorlevel between 1 and 200 for the number of rows
EXAMPLE 2 : SWIDTH /V
Sets variable 'ROW' to the number of rows
EXAMPLE 3 : SWIDTH /VCOLS
Same as example 2, but variable is COLS
EXAMPLE 4 : SWIDTH /V /X
Same as example 2, but uses the parent environment
Page 56
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
SWPRN - redirects printer output PRN TO LPT2
Syntax : SWPRN
ERRORLEVELS : 255 (0FF) TAMPER
** NOTE ** use 2nd time to restore original setting
TC - Cursor attribute setting utility
Syntax : TC mode
Where : 'mode' is one of the following :
'X' or '0' - hide cursor
'O' or '1' - unhide cursor
'S' - get current status, on or off
ERRORLEVELS : 255 for tamper
4 requested mode already in effect
3 in graphics mode (cursor only avail in text)
2 Cursor off
1 Cursor on
0 Mode set
EXAMPLE 1 : TC
Toggle current state of cursor, if visible, then we hide
EXAMPLE 2 : TC X {or 0}
Hide cursor (make it invisible)
EXAMPLE 3 : TC O {or 1}
Make cursor visible
EXAMPLE 4 : TC S
Get cursor status {see errorlevels above}
Page 57
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
TD - Display time and / or date
Syntax : TD /Dr c /T r c /N
Where : '/Dr c' selects display of date on optional row 'r' and
column 'c'.
'/Tr c' selects display of time on optional row 'r' and
column 'c'
'/N' excludes day of week from date display
ERRORLEVELS : 255 (0FF) is tamper detection
254 (0FE) not in text mode
253 (0FD) command error
EXAMPLE 1 : TD
Displays both time and date at the current cursor location
IE... 12:57:20AM Tuesday June 1,1999
EXAMPLE 2 : TD /D
Displays only date at current cursor location
EXAMPLE 3 : TD /D5
Displays only date on line 5
EXAMPLE 4 : TD /D5 5
Displays date on line 5, column 5
EXAMPLE 5 : TD /T
Displays only time at current cursor location
EXAMPLE 6 : TD /T5
Displays time on line 5
EXAMPLE 7 : TD /T5 5
Displays time on line 5, column 5
EXAMPLE 8 : TD /N
Same as example 1, but day of week is excluded
Page 58
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
WAIT - pause batch file for specified period of time
Syntax : WAIT /Sn /Mn /Tt
Where : '/Sn' pauses batch file for 'n' seconds
'/Mn' pauses batch file for 'n' minutes
'/Tt' pauses batch file till time 't'
't' is in format 'hh:mm:ss' , 24 hour format
ERRORLEVELS : 255 (0FF) tamper detection
254 (0FE) command error
** NOTE ** limits for both option '/S' & '/M' are values 1 thru
59 (seconds or minutes).
EXAMPLE 1 : WAIT
Pause one second (default value)
EXAMPLE 2 : WAIT /S5
Pause 5 seconds
EXAMPLE 3 : WAIT /M5
Wait 5 minutes
EXAMPLE 4 : WAIT /T4:23:00
Pause till 4:23 AM
Page 59
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
WDATE - Gets the current date, uses errorlevel or variable
Syntax : WDATE /D /M /Y /W /Vvar /X /A
Where : '/D' selects day of month
'/M' selects month
'/Y' selects year
'/W' selects day of week (default selection)
'/Vvar' selects use of variable, default of 'CDATE' or
optional name 'var'.
'/X' selects the parent environment when using a
variable.
'/A' selects all of date for use with a variable
ERRORLEVELS : 255 (0FF) tamper detection
254 (0FE) Command error
1-31 for day of month
1-7 for day of week
1-12 for month
0-99 current year of century
EXAMPLE 1 : WDATE
Get day of week in errorlevel
EXAMPLE 2 : WDATE /D
Get day of month in errorlevel
EXAMPLE 3 : WDATE /M
Get which month in errorlevel
EXAMPLE 4 : WDATE /Y
Get year as errorlevel
EXAMPLE 5 : WDATE /W
Same as example 1
EXAMPLE 6 : WDATE /V
Get day of week into default variable 'CDATE'
EXAMPLE 7 : WDATE /VDATE
Get day of week into variable 'DATE'
EXAMPLE 8 : WDATE /V /X
Same as example 6, but uses parent environment
Page 60
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
WINDOW - clear portion (or all) of screen, or scroll all or
portion of screen by selected line count
Syntax : WINDOW sr sc er ec /Fn /Bn /Dn /Ln
Where : 'sr' is the start row of the window
'sc' is the start column
'er' is the last row of the window
'ec' is the last column
'/Fn' set foreground color to value 'n'
'/Bn' set background color to value 'n'
'/Dn' set direction up ('n'=0) or down ('n'=1)
(only valid with use of next switch)
'/Ln' number of lines to scroll, if 0 or ommitted, then
the window area is cleared (created).
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) not text mode
253 (0FD) command error
EXAMPLE 1 : WINDOW 1 1 25 80
Clears the screen to current color
EXAMPLE 2 : WINDOW 1 1 25 80 /F7 /B1
Clears the screen to white on blue
EXAMPLE 3 : WINDOW 1 1 25 80 /D0 /L1
Scroll screen up one line
EXAMPLE 4 : WINDOW 1 1 25 80 /D1 /L1
Scroll screen down one line
EXAMPLE 5 : WINDOW 1 1 25 80 /F7 /B1 /D0 /L1
Same as example 3, but new line is cleared to white on blue
EXAMPLE 6 : WINDOW 1 1 25 80 /F7 /B1 /D1 /L1
Same as example 4, but new line is cleared to white on blue
Page 61
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
WRITE - powerful text display utility, to replace ECHO
Syntax : WRITE /Rr /Cc /Pp /Fc /Bc /X /N /D msg
Where : '/Rr' sets the row for display to 'r'
'/Cc' sets the column to start display to 'c'
'/Pp' use video page 'p', default is active
'/Fc' use foreground color 'c'
'/Bc' use background color 'c'
'/X' center text on line
'/N' No CR/LF (new line) after display
'/D' Use DOS for display instead of Bios
'msg' text string to display
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) Not in text mode
253 (0FD) command error
** NOTE ** One main advantage of WRITE over ECHO is the fact that
we can simply generat a CR/LF (new line) by putting WRITE on a
batch file line alone ! WRITE uses the current cursor location
if none are supplied ('/Rr' & '/Cc'). WRITE uses the existing
screen colors if they are not supplied. Use the '/D' switch if
redirection is required..
Page 62
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
EXAMPLE 1 : WRITE
Generates a new line (move cursor to start of next line)
EXAMPLE 2 : WRITE Hi
Displays 'Hi' at the current cursor location
EXAMPLE 3 : WRITE Hi /R5
Displays 'Hi' on line 5
EXAMPLE 4 : WRITE Hi /C5
Displays 'Hi' on the current line, but column 5
EXAMPLE 5 : WRITE Hi /F7 /B1
Same as example 2, but white on blue
EXAMPLE 6 : WRITE Hi /X
Same as example 2, but centered
EXAMPLE 7 : WRITE Hi /N
Same as example 2, but cursor will be on same line after 'i'
EXAMPLE 8 : WRITE Hi /D
Same as example 2, but can be redirected by DOS
EXAMPLE 9 : WRITE Hi /P2
Same as example 2, but on video page 2
Page 63
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
WRITEF - Show all or part of a file on display
Syntax : WRITEF spec /Cc /Pp /Sl /Ln /D
Where : 'spec' is any valid file name, drive and path
'/Cc' sets left margin to 'c'
'/Pp' display will be on page 'p'
'/Sl' Start display on file line number 'l'
'/Ln' Last video line to use
'/D' Use DOS to display (redirection allowed)
ERRORLEVELS : 255 (0FF) for tamper
254 (0FE) Not in text mode
253 (0FD) Command error
252 (0FC) File not found
251 (0FB) Can't read file
** NOTE ** The switch '/Sl' allows us to use 1 file to contain
many screen images. Just specify the line to start displaying
and the last video line to use.
EXAMPLE 1 : WRITEF MENU
Will display all of file MENU or till last video line is reached
EXAMPLE 2 : WRITEF MENU /C5
Same as example 1, but has a left margin at column 5
EXAMPLE 3 : WRITEF MENU /P2
Same as example 1, but display is on video page 2
EXAMPLE 4 : WRITEF MENU /S20
Start display of file 'MENU' after reading 19 lines, and display
lines till end of file or last video row.
EXAMPLE 5 : WRITEF MENU /D
Same as example 1, but uses DOS, so redirection is allowed
EXAMPLE 6 : WRITEF MENU /L20
Same as example 1, but stops file read when video line 20 is
reached (or end of file)
Page 64
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
WTIME - Gets the time of day as an errorlevel or variable
Syntax : WTIME /H /M /S /Vvar /X /A
Where : '/H' selects hour of day
'/M' selects minute
'/S' selects seconds
'/Vvar' selects use of variable, default of 'CTIME' or
optional name 'var'.
'/X' selects the parent environment when using a
variable.
'/A' selects all of date for use with a variable
ERRORLEVELS : 255 (0FF) tamper detection
254 (0FE) Command error
0-60 for minutes or seconds
0-24 for hours
EXAMPLE 1 : WTIME
Get current hour
EXAMPLE 2 : WTIME /H
Same as example 1
EXAMPLE 3 : WTIME /M
Get current minute
EXAMPLE 4 : WTIME /S
Get current seconds
EXAMPLE 6 : WTIME /V
Get current hour into default variable 'CTIME'
EXAMPLE 7 : WTIME /VTIME
Get current hour into variable 'TIME'
EXAMPLE 8 : WTIME /V /X
Same as example 6, but uses parent environment
Page 65
S E B F U Version 3.0.0
(C) 1989/90 Scanlon Enterprises
M A S T E R R E F E R E N C E
XMSCK - checks if expanded memory manager is installed
Syntax : XMSCK
ERRORLEVELS : 255 (0FF) tamper detection
1 installed
0 not installed
YN - get a yes / no response
Syntax : YN /Ic
Where : '/Ic' cancels detection of escape 'c'=E or ^C 'c'=C
YN normally exits if escape or ^C are detected
ERRORLEVELS : 255 (0FF) tamper detection
2 for no
1 for yes
0 for escape or ^C detection
** NOTE ** either upper case or lower case 'Y' or 'N' are allowed
EXAMPLE 1 : YN
Exits with above errorlevels
EXAMPLE 2 : YN /IE
Same as example 1, but ignores escape key
EXAMPLE 3 : YN /IC
Same as example 1, but ignores ^C
EXAMPLE 4 : YN /IC /IE
Same as example 1, but ignores both escape & ^C
Page 66
BEEP.COM 545Φ. ╕ L═!3.0.0BEEP - (C) 1991 Scanlon Enterprises ┐é ë■èÇ ╜2φÇ∙r¼<ar<zw$▀¬Γ≥Φ| Ç~ w9╜â~ w╟F Ç>rÇ> w╞ ┤░╖ ═Ç> w N â~ w
╜èF ┤L═!Ç>r┤,═!ê6 ┤,═!:6 t÷Ç>r╛┤═t╕Ç>r╔2Σ═δ├Ç>Ç w├UWVPQSR╛é ╜
èÇ ╡ ¼:F t<,t÷< t≥<u⌠í(Ç Z[YX^_]├VWUQSVë≈╣ ñÇ<,tÇ< tÇ<tAδφë╗ ╜╣ ^V¼<ar<zw$▀:F tCCEΓ÷╞Θ ╕├ ^Ç> wNï╟ ï╞┴ë≈ï≡ñÇ| w∙[Y]_^NÇ>rΘj ΘU ┐║ ╗