Article ID: 101884 - Last Review: November 19, 1999 - Revision: 1.0 How to Detect a DoubleSpace Drive from a Batch FileThis article was previously published under Q101884
This information applies to both Microsoft DoubleSpace and Microsoft
DriveSpace. For MS-DOS 6.22, use DRVSPACE in place of DBLSPACE for commands
and filenames.
On This PageSUMMARY
MS-DOS batch files cannot distinguish between compressed drives and
uncompressed drives. However, you can use the MS-DOS Debug utility to
create a program that sets an errorlevel depending on whether a drive
is compressed with DoubleSpace. An MS-DOS batch file can then test
this errorlevel to determine whether the drive is a DoubleSpace-
compressed drive.
NOTE: Microsoft Product Support Services does not provide support for writing the Debug script or batch file discussed in this article, or troubleshoot problems related to compiling, running or using this program or batch file. MORE INFORMATION
This following is an example of how to use the MS-DOS Debug utility to
create a program file called ISDBL.COM. ISDBL.COM determines the
following:
Results Errorlevel ------------------------------------------ DoubleSpace compressed drive 1 DBLSPACE.BIN is not loaded 0 Invalid drive 0 Other errors 0 Creating ISDBL.COMISDBL.COM is created using a Debug script file, which contains all the commands you would enter from within DEBUG to create ISDBL.COM.To create ISDBL.COM, follow these steps exactly:
Using ISDBL.COMYou can now run the ISDBL.COM program from within a batch file to get information about a specific drive. Below is an example batch file:DBLTEST.BATHow ISDBL WorksIn determining whether the drive is compressed, ISDBL assumes that DoubleSpace is running.ISDBL checks the specified drive by using Interrupt 2F, function 4A11. This function is the DSGetDriveMapping application programming interface (API) call for DoubleSpace. If the drive is compressed, then Bit 7 of BL will be set. Otherwise, it is zero. This result is simply returned at the end of ISDBL. APPLIES TO
| Article Translations
|

Back to the top
