Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have written several batches that load CDROM, USB, etc using ctload. I am now trying to add error checking.
One check is to see if the driver is already loaded in case the batch is run from the prompt: If it is, then echo "already loaded", and exit.
The problem is that ctload acts as a wrapper around whatever it loads, so one will not find the driver in mem.
For instance, if one loads vide_cdd.sys from config one can find vide_cdd in mem. If the same driver is loaded using ctload, one can find ctload in mem, but not vide_cdd. As multiple drivers can be loaded using ctload, it is impossible to test for ANY drivers that ctload has loaded.
Is there another like ctload that will lh the drivers and can be queried for status?
Perhaps a tool to get status from mscdex, or a replacement that does same (must like win)?
Does any other solution come to mind?
I have already thought to leave a var and write to %temp% at the end of boot, but would like a more elegant solution, one that doesn't clutter the environment for very long and requires no standing temp file.
Other Info:
Schaeffer's tools, others are available (not a purist, new toys are welcome).Batch may be on CD, so write to %0 dir is not suggested.
First error test is for %temp%, batch will exit without it, so write is available in %temp%.
THX in advance.
Bruce

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |