wodSftp.dll from Windows Script Host - vbs error - WeOnlyDo Discussion board

wodSftp.dll from Windows Script Host - vbs error (General questions)

by Havelock, Wednesday, March 14, 2007, 15:48 (6464 days ago)

Using a lincesed dll i'm getting a VBS erro of object required: 'Server'

All is fine from running within an ASP page but as a vbs WSH file i get error at line:
set Sftp = Server.CreateObject( WeOnlyDo.wodSFTPCom.1 )

Error: Object required: 'Server'
Code: 800A01A8
Source: MS VBScript runtime error

Any thoughts on this? Thanks!

Re: wodSftp.dll from Windows Script Host - vbs err

by woddrazen, Wednesday, March 14, 2007, 16:26 (6464 days ago) @ Havelock

Hi,


Please try something like this:
[code]
Set objFTP = WScript.CreateObject( WeOnlyDo.wodSFTPCom.1 , wod_ )
[/code]
We have sample for VBS. You will found sample in wodSFTP Samples folder (SFTP\Samples\VBS\With Events)

Let us know how it goes.


Regards,
Drazen

Re: wodSftp.dll from Windows Script Host - vbs err

by dickconrad, Friday, March 16, 2007, 14:01 (6462 days ago) @ woddrazen

Hi:

I believe that the construction Server.Createobject only applies when talking to a web server.

My Wscript code runs fine as in these examples:

set telnet = CreateObject( WeOnlyDo.wodTelnetDLXCom.1 )
Set oFS = Createobject( Scripting.FileSystemObject )

Dick Conrad