Re: [WIN] GetLogicalDrives returns drives NOT present

new topic     » goto parent     » topic index » view thread      » older message » newer message

Dan Moyer wrote:
> 
> 
> When I wrap the function GetLogicalDrives, it works, except that it 
> returns drive numbers for drives that aren't actually there yet, exactly as
> "My Computer" does, ie, usb drives that aren't currently plugged in.  And then
> if I use "dir" to see if a drive is "ready", I get a non-fatal error message.
>  
> 
> What I was trying to do was find out what drives are on the system, and then
> if they were removable or not.  But I don't want to check drives that aren't
> actually there.
> 
> Any suggestions??
 
Dan:

    Be sure that you unmount the USB drives before you remove them.

    Windows when it loads assigns the drive numbers when it boots

    and when you remove a USB drive it's drive number does not go

    away.

    You did't say what operating system you are using which may make a

    difference.

    Here is a link that might help:

    http://www.uwe-sieber.de/usbstick_e.html

Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu