[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

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

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?


- How can I disable access to a drive?



 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



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 October 22 2009 @ 05:28 AM

Some parts © 2009 Advameg, Inc.