The Internet Transfer Control's Execute method operates asynchronously. The StillExecuting property returns a True/False if there is currently a request pending.

If I was to code such:

Inet1.Execute "DIR"

Do While StillExecuting
DoEvents
Loop

DoEvents function allows the operating system to process events and messages waiting in the message queue, but what is happening? What is the DoEvents doing?

What I would like to achieve, I would stop all "continued" action until there isn't any request pending; making the method act synchronously.

Also any help with understanding DoEvents function and its purpose?

PLease any help?
Thanks,
deDogs