Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

mzognrah

Error: Could not create object named "WinsSCP.SessionOptions"

I am trying to download a file from a ftp server and I am getting below when I run the script.

Error: Could not create object named "WinsSCP.SessionOptions" @Set sessionOptions = WScript.CreateObject("WinSCP.SessionOptions")

--beginning of the script below until the error line--

<job>
<reference object="WinSCP.Session"/>
<script language="VBScript">

Option Explicit

' Setup session options
Dim sessionOptions
Set sessionOptions = WScript.CreateObject("WinSCP.SessionOptions")