Re: Complete VBScript Example - WeOnlyDo Discussion board

Re: Complete VBScript Example (General questions)

by Troglite, Tuesday, February 15, 2005, 00:15 (7220 days ago) @ Troglite

Just in case my existing code sample (VERY SIMPLE) is useful:

dim obj_sftp
set obj_sftp = CreateObject( WeOnlyDo.wodSFTPCom.1 )

with obj_sftp
.Hostname = cstr(g_DestinationServer)
.Login = cstr(g_DestUsername)
.Password = cstr(g_DestPassword)
.Blocking = cbool(true)
.Connect
.PutFile cstr( & CStr(g_local_sub_path)), CStr(PathToUploadedFile)
.Disconnect
end with

Assuming this code is correct... how do errors get passed back to me and how can I capture useful information about the error for logging and reporting purposes??


Complete thread: