home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT214.ZIP
/
SEBFU40.LZH
/
DSKRDY.DOC
< prev
next >
Wrap
Text File
|
1991-09-27
|
6KB
|
180 lines
D S K R D Y Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
DSKRDY is a small utility to check if a floppy (A or B) drive is
ready, if a disk is inserted, or if the disk is formatted.
Syntax : DSKRDY d:
Where : 'd:' is either drive A or B, and the colon is optional
Defaults : There are none, and A or B must be specified
ERRORLEVELS: 255 (0FF) = Program Problem (call Author)
4 = Drive NOT specified
3 = Invalid drive specified
2 = Drive NOT ready (no disk)
1 = Disk already formatted
0 = Disk ready to format
EXAMPLES:
ECHO OFF
CLS
DSKRDY A
FOR %%F IN (5 4 3 2 1) DO IF ERRORLEVEL %%F GOTO STAT%%F
ECHO Disk Ready to Format
GOTO XIT
:STAT1
ECHO Disk is formatted
GOTO XIT
:STAT2
ECHO Drive Not ready / no disk installed
GOTO XIT
:STAT3
ECHO Invalid drive specified
GOTO XIT
:STAT4
ECHO Drive Must be specified
GOTO XIT
:STAT5
ECHO Program Problem, Call Author
:XIT
Page 1 of 3
D S K R D Y Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
The following example is a much more useful function. This batch
file will use your DOS FORMAT program to cycle both drive A and B
to format continously, untill an error is detected.
ECHO OFF
CLS
ECHO DSKFMT Formatting Utility .......
ECHO Insert a disk into Drives A and B
PAUSE
:LPA
DSKRDY A
IF ERRORLEVEL 2 GOTO DRVFAIL
IF NOT ERRORLEVEL 1 GOTO FMTA
ECHO Disk in drive A is Formatted
ECHO Press ^C to abort format, or
PAUSE
:FMTA
FORMAT A:<C:\BAT\ANS
:LPB
ECHO Disk in Drive A formatted, Formatting
ECHO disk in drive B
DSKRDY B
IF ERRORLEVEL 2 GOTO DRVFAIL2
IF NOT ERRORLEVEL 1 GOTO FMTB
ECHO Disk in drive B is Formatted
ECHO Press ^C to abort format, or
PAUSE
:FMTB
FORMAT B:<C:\BAT\ANS
ECHO Disk in Drive B Formatted, Formatting
ECHO disk in drive A
GOTO LPA
:DRVFAIL
ECHO Drive A is NOT ready, or there is no
ECHO disk installed, press ^C to abort, or
PAUSE
GOTO LPA
:DRVFAIL2
ECHO Drive B is NOT ready, or there is no
ECHO disk installed, press ^C to abort, or
PAUSE
GOTO LPB
This batch file will run continously, untill the user presses the
^C key sequence during one of the PAUSE commands. The PAUSE
command halts the batch file untill a key is pressed, or if ^C is
pressed, the batch file terminates.
The above batch file is included as a sample batch file, called
FMTAB.BAT .
For additional usage and information on using these utilities see
the file SEBFU.DOC or BATUT.DOC.
Page 2 of 3
D S K R D Y Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
O R D E R F O R M
DSKRDY registration ..................................... $2.00
What you get :
Unlimited usage of DSKRDY, and phone or write in support. You
will also be placed on our mailing list for future updates and
new products.
DSKRDY PLUS with additional capabilities:
User may specify any valid disk drive (A-Z)
OPTION to select testing for the write protect tab.
OPTION to select returning media type, such as 3.5 inch
or 5 inch, high density, etc...
Will exit with an errorlevel indicating the selected
drive is a Hard drive, if the specified drive is.
MORE....
We are offering this utility seperate from SEBFU as a favor to
users who do NOT wish to use many of the SEBFU utilities.
This utility is automatically registered to you when you register
SEBFU as a product (see REG.DOC). Registering SEBFU as a product
is a better bargin, as each utility will cost less than $ .25
each.
Vendors:
You may distribute DSKRDY seperately, provided this document is
distributed as well. Any reasonable fee may be charged.
Send your order to : SCANLON ENTERPRISES
38354 17TH ST E.
PALMDALE, CA 93550