Yes, I know the sample is great. It requires no timer or any other trickery, it simply waits for an internal Windows message which is sent when you add a device. Cool and very easy to use.
>thanks Tore it is great !
>
>>Open Tools->Task pane->New in Visual FoxPro 9.0->Binding to Windows Message events->Media events. The sample does exactly what you want.
>>
>>>thanks but, could you be more "explicit" ? :-)
>>>
>>>>Look at BINDEVENT()
>>>>
>>>>>i'd like to record data on a PEN DRIVE or another USB HD, how can I detect on fly if it is connected and to which logical drive it is associated ?
>>>>>thanks