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