News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Skip Removable drive error

Started by starzboy, May 16, 2009, 01:04:56 PM

Previous topic - Next topic

starzboy

Hello
I am trying to write a little code which will get the disk info of my removable drive which is a Floppy drive.
When there is a floppy in the drive, the function works well but when there is no floppy, i get an error - 'Windows - Drive not ready'.
how can i skip this error message when there is no floppy in the drive ?
Please help.

Vortex

How do you retrieve the status info of the floppy?

Mark Jones

Hi, maybe this is doing something like what you want: DriveWait / DW GUI

http://www.masm32.com/board/index.php?topic=5317.0
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

starzboy

@Vortex
I dont do any check to check status of floppy, i just use GetDriveType to identify the removable drive, and then createfile to access the files.
Should i do a status check ?
If yes then how ?

@Mark
Thanks for the help, i will look into it, maybe its of use to me.

Vortex

With retrieving the status, I meant getting disk info.

starzboy

@Vortex
I tried to calculate the free space etc, but the moment the code tries to access the disk i get the error message.
I try to use the SetErrorMode to supress the error and it works but the program lags, its just that the error dosent show.
What can be done about this ?
Please help.

farrier

It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

starzboy

Hello
thanks for the help.
That is exactly what i had been using for the time being, but you see the program lags, the error does not show but the program lags, and i am using a timer so the program lags a lot, hope you understand.