WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

SCSI commands

Keywords:  SCSI commands

Question:

Does WB support any kind of SCSI commands, such as extracting vendor-specific data from storage devices.

I can get the standard inquiry data from the registry, but apparently have to run a SCSI query to get back variable data.

Anything in WB for this?

Answer:

Sorry, no.

One User Reported:

It might be possible to do with the DllCall() function and some binary buffers. Basically, you need to have an ASPI layer installed so that regular application programs can interrogate SCSI host adapters and the devices on the SCSI buses. All of the popular audio track ripping programs and CD/DVD burning programs tend to make use of this ASPI layer. The most popular one is the WNASPI32.DLL file that Adaptec's own SCSI drivers install when you use an Adaptec SCSI controller. It is not supposed to be installed w/o the use of Adaptec's own SCSI hardware, but you can find a hacked kit called "Force ASPI" that installs just the ASPI layer w/o the rest of Adaptec's drivers. I use it and it works nicely for dumping CDROMs out to .ISO files with DiscDump [DDUMP].

Anyway, as I was saying, you might find some C language programming examples showing how to interrogate a SCSI device using WNASPI32.DLL. If you can, then perhaps you can adapt that to WinBatch code using DllCall() and some binary buffers. If it is too complex to do directly in WinBatch then it might take writing an ASPI/SCSI extender to do the job.

Another countered:

Some month ago as I had similar needs to work on scsi layer I gave up my effort in the moment as I found out that there is no way to drive wnaspi32.dll by WinBatch dll routines. Take a look into adaptec's wnaspi info pdf and you can see that they use another dll parameter method than WinBatch dll functions.


Article ID:   W15178
File Created: 2002:09:05:13:50:20
Last Updated: 2002:09:05:13:50:20