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!!
Printable View
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!!
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!
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