Article ID: 101884 - View products that this article applies to.
This article was previously published under Q101884
This article has been archived. It is offered "as is" and will no longer be updated.
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.
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.
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:
NOTE: ISDBL.COM tests the current drive if no drive is specified on the command line.
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:
How 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.
Contact us for more help
Connect with Answer Desk for expert help.