>Herman, thanks.
>
>Yes, the line inkey( 0, 'HM' ) force INVOKEVERBS to work: files are removing now from Recycle Bin. Without inkey, files remain in Recycle Bin.
>
>But I do not understand, why this inkey() should be added. Could you explain ?
>
Hi Yuri,
Well, I can't quite explain what is really happening here too. But my guess is, when the VFP apps running as an EXE, VFP needs at least "one event" so VFP can wait for any input. Without READ EVENTS or INKEY(0), VFP will not wait for any input especially an event from a dialog (thread) that is not attached to VFP, like the dialog comes from InvokeVerbs. And then VFP execute the line "oShell = NULL" so the object is destroyed without question.
But again that's just my guess :-)
Herman