checking removable drives

Mark Wieder mwieder at ahsoftware.net
Thu Nov 3 18:15:49 EST 2005


Chipp-

Thursday, November 3, 2005, 12:50:36 PM, you wrote:

> PS I've asked Chris about how to figure out the removable drive thing on
> XP w/out vbs...He's processing...(unfortunately, I'm using Chris 1.0,
> the 2.0 version *still* hasn't been released).

Again, there's an external call in the sdk to do this. There's a Win32
API call named GetDriveType() that returns DRIVE_REMOVABLE for
removable drives. Including USB flash drives. I doubt this can be done
without an external call, short of seeing if a write works.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list