How to use WebCopy with missing internet conection

I am using C++Builder 2009 and C++B XE4

This is about TWebCopy version 2.4.1.0

I am using, Data1->Protocol = wpHttp; and WebCopy->ThreadExecAndWait();

.

=============================

.

My application uses WebCopy to download files from the Internet as soon as the app starts. If there is no internet connection my application hangs waiting for WebCopy.

.

Can you show me the best a way to set the Properties in WebCopy so it will quickly return if there is no internet connection?

.

Maybe there is another TMS Component which I can use to ping the internet connection to make sure it is working before I call WebCopy?

.

What is the best way to handle this?

.

Thanks

Patrick Mikula

You could try to set webcopy.TimeOut to a lower value.

You could also try the component TWebConnect. With webconnect.Connected: boolean, it checks for an internet connection.