When working in scripting environments such as ASP or
VBS, you are unable to retrieve information about
errors in the previous method by using the Done event. Instead you
can access the LastError property to find out which error occurred.
This is the same value provided by the Done event.
To get a string representation of the error, you can use
the following code:
Debug.Print
Sftp1.ErrorText(Sftp1.LastError)