home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTILS1
/
DOUBLE.ZIP
/
DBL.BAT
next >
Wrap
DOS Batch File
|
1994-02-06
|
4KB
|
106 lines
@echo off
goto Start
┌───────────────
│ DBL.BAT █
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
Sat 02-05-1994 23:19:58
This batch file DBL.BAT uses the *.COM program ISIT_DBL.COM to
test a drive to see if it is a compressed DOS 6.0 Double Space
drive. A nifty idea...
I lifted the Assembly code for ISIT_DBL.COM from a Microsoft
Knowledge Base article Number: Q101884, August 18, 1993.
If you read MAKE_COM.BAT in this file set it will disclose the
small improvement I made in the code.
As of this writing I have doped out -mostly- how to translate this
small piece of Assembly coding into plain vanilla QuickBASIC 4.5
and should have -that- program done "soon."
Wanted to post this batch file set with the QuickBASIC program,
but have defaulted to the simple, just... "because."
The *.COM file ISIT_DBL.COM accepts a single drive parameter as C:
or D: or... uses the drive you are on if NO parameter is entered.
But if you don't enter a drive letter (and the colon, don't forget
the colon...) you won't know what drive you are testing as it does
NOT display the drive letter by itself.
──────────────────────────────────────────────────────────────────
Note bene:
Be sure to use both the Drive letter -and- the colon:
ie: C:
or you will get a false result
───────────────────────────────────────────────────────────────────
ISIT_DBL.COM then uses the DOS Interrupt 2F to see if the DoubleSpace
"identifier" (4A11H) is there; then sets the ERRORLEVEL to one (1)
if a Double Space drive is identified or ERRORLEVEL zero (0) if one
is not found.
DBL.BAT can be put into your AUTOEXEC.BAT and run from there, or it
can be used to test every drive as I have done with a
"loop-de-loop" using DBL_TEST.BAT.
DBL_TEST.BAT is one of the weird batch files inspired by my
BatchMeister mentor Neil Rubenking. DBL_TEST.BAT checks Drives from
A: to N: to see if any of them are Double Spaced.
If a Double Space drive is identified, you get a mini multi-media
extravaganza.
If you will download another one of my file sets named 2DRIVE.EXE,
it will explain fairly well how and where DOS sets the ERRORLEVEL
number.
Yes... that's right I am trying to learn Assembly and how to "talk
to DOS." Which reminds me, did you know that DOS spelled backwards
is "SOD?" Now -that- reminds me of a riddle....
Ahem...
How... do you describe a male agnostic, dyslexic, insomniac?
Give up...???
A man who stays up all night wondering if there is a DOG.
John De Palma on CompuServe 76076,571
:Start
if not exist isit_dbl.com goto Error
isit_dbl %1
if errorlevel 1 if not errorlevel 2 goto Splash
if errorlevel 0 if not errorlevel 1 goto Failure
:Failure
echo.
echo The drive %1 is =NOT= a DoubleSpace compressed drive.
echo PRESS a key to continue or {Ctrl}+C to end...
pause>nul
goto End
:Splash
echo.
echo █▀▀▀▀▀▀▀▀▀▀▀▀▀█
echo █ SUCCESS!!! █ │
echo █▄▄▄▄▄▄▄▄▄▄▄▄▄█ │
echo ───────────────┘
echo
echo ┌─────────────────────────────────────────────────┐
echo │ DRIVE %1 -is- a DoubleSpace Compressed Drive! │
echo │ PRESS a key to continue or {Ctrl}+C to end... │
echo └─────────────────────────────────────────────────┘
pause>nul
goto End
:Error
echo.
echo Can't Run without ISIT_DBL.COM... Ending...
pause
:End