Using edFTP Express, I just ran across a issue that I am having trouble resolving. Here is the code that I get the issue with:
================
RemoteHtmlDirectory = "public_html"
' connect to the server
' By default, auto-login is on so Login doesn't need to be called
lbFileList.Items.Add("Connecting to server " & ServerAddress)
ftpConnection.Connect()
'if no internet avail, this throws exception
'if internet is working, this works fine
'Let's change to the proper directory
ftpConnection.ChangeWorkingDirectory(RemoteHtmlDirectory)
=====================================
How can I trap this error, or check ahead of time if the Internet connection is even active?
I am using VB2003.
:?: :?: