Error 71-Disk not ready ...Please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • payal25
    New Member
    • Aug 2008
    • 4

    Error 71-Disk not ready ...Please help

    Hi everyone

    I'm getting an error "Disk not ready ". related to scrrun.dll

    I get this error when i try to access the pen drive through a VB 6.0 application.
    I'm using File System Object to access the drive.

    The code is as follows:

    Set fso = CreateObject("S cripting.FileSy stemObject")
    For Each drv In fso.Drives
    With drv
    strDriverType = .FileSystem
    End With
    Next
    Msgbox strDriverType

    Error 71 is generated when the application tries to get the ".Filesyste m"

    Thank you
  • leoce7
    New Member
    • Aug 2008
    • 8

    #2
    Is it just the .FileSystem property that doesn't work? What about .DriveType or .ShareName? If the drive isn't ready yet you could code in a delay possibly before you try to retrieve drive attributes using the Sleep feature or timer.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      Yes, you will get that error, thats because, First Drive is "A"
      and accessing any properties of "A" (Floppy drive) without Floppy in it results in error..

      Regards
      Veena

      Comment

      Working...