Results 1 to 3 of 3

Thread: How do I access a SCSI tape drive using VB6??

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    India
    Posts
    1

    Unhappy

    Need info on VB functions/Sub-routines etc to access a SCSI tape drive (In order to Backup/Restore databases to a tape drive). Any ideas, suggestions, links would be welcome. Help Guys and Gals!!

  2. #2
    New Member
    Join Date
    Jan 2001
    Posts
    1

    Trying to do the same thing!

    I've managed to get a small way towards manipulating a tape device using VB. I've been using the CreateFile API call to get a handle to the device.

    CreateFile("\\.\TAPE0", 0, 0, 0&, OPEN_ALWAYS, 0, 0&)

    After I realised that the desiredAccess parameter was causing the call to error I have been able to get a handle to the tape drive by replacing GENERIC_ALL with 0. I am now getting a handle back but when I use the GetTapeStatus API call it is returning ERROR_ACCESS_DENIED.

    Anyone got any pearls of wisdom they'd like to share with me to stop me banging my head against this big brick wall in front of me!

  3. #3
    Guest

    Red face

    if you just need to read/write data you could use a common dialog to open it, that would list all drives inc your scsi one

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