wodSftp.dll from Windows Script Host - vbs error (General questions)
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
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
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