CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2000
    Posts
    30

    How to check whether the floppy disk is write-protect or not?

    Who know how to check whether the floppy disk is write-protect or not?

    Thanks!


  2. #2
    Join Date
    May 2001
    Location
    Canada
    Posts
    7

    Re: How to check whether the floppy disk is write-protect or not?

    Function IsWriteable() as Boolean
    On Error Goto Hmm
    Open "A:\Tmp.tmp" for Append as #99
    IsWritable = True
    Hmmm:
    Close #1
    if Err = 70 then
    *It's not writeable or that file is in use*
    Else
    Error(Err)
    end if
    End Function


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured