Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.os.msdos.programmer FAQ part 3/5
Section - - How can I disable access to a drive?

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Houses ]


Top Document: comp.os.msdos.programmer FAQ part 3/5
Previous Document: - How can I make my single floppy drive both a: and b:?
Next Document: - How can a batch file test existence of a directory?
See reader questions & answers on this topic! - Help others by sharing your knowledge

 Reader Eric DeVolder writes that he has made available a program to do
 this. I haven't tried it, but it's downloadable from
 <http://www.simtel.net/pub/pd/44403.html>

 Reader Igor Karp reports that MS-DOS version 5.0 and greater provides
 two interrupts to do this.

   --------D-215F07-----------------------------
   INT 21 - DOS 5+ - ENABLE DRIVE
      AX = 5F07h
      DL = drive number (0=A:)
   Return: CF clear if successful
      CF set on error
      AX = error code (0Fh) (see #0885 at AH=59h)
   Notes:   simply  sets the "valid" bit in the  drive's  CDS
   this function is not supported by Novell DOS 7
   See Also: AH=52h,AX=5F08h"DOS"

   --------D-215F08-----------------------------
   INT 21 - DOS 5+ - DISABLE DRIVE
      AX = 5F08h
      DL = drive number (0=A:)
   Return: CF clear if successful
      CF set on error
      AX = error code (0Fh) (see #0885 at AH=59h)
   Notes:   simply clears the "valid" bit in the drive's  CDS
   this function is not supported by Novell DOS 7

User Contributions:

1
Ben in Seattle
Jun 2, 2026 @ 4:16 pm
Another solution is to use a parallel port loopback plug. It makes the PC think there is a printer attached. The benefit of this is it doesn't require anticipating the problem with ANSI.SYS escape sequences nor does it make you wait half an hour for the "Abort, Retry, Ignore?" prompt, as some versions of DOS do.

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.os.msdos.programmer FAQ part 3/5
Previous Document: - How can I make my single floppy drive both a: and b:?
Next Document: - How can a batch file test existence of a directory?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
jeffrey@carlyle.org (Jeffrey Carlyle)





Last Update March 27 2014 @ 02:11 PM