Topic "Using WinSCP in place of CuteFTP9"

Author Message
Prophesix

Guest


hello, I'm tasked with editing some existing VB scripts to work with WinSCP instead of CuteFTP9. I know it's a pretty decent sized task and it doesn't help much that I'm not very familiar with VBscripting. I'm running into an error where the script builds the connection session and connects to the ftp server in two separate Sub routines but when it goes to initiate the file transfer (A 3rd sub) it fails and errors saying that it is not connected. Can anyone assist with why the connection would not exist when moving sub routines? DO I need to change them to functions in order to "pass" the session around to the different procedures? Thanks in advance for your help.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
Can you show us (and comment) your code?
Guest




It might actually be easier just to send you what I'm working on... It's about 1600 lines long.... Thankyou for your help!! Very Happy
WINSCPTemplate.vbs (68.17 KB) Private file

Description: This was originally someone elses and I've just picked it up and am trying to make it work with WinSCP.

Guest




Sorry That was an older version....
WINSCPTemplate.vbs (68.27 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
Which is the "3rd sub", where you get the problem?
Prophesix
[View user's profile]

Joined: 2015-08-25
Posts: 2
Location: USA
I get the error when returning from the FTPConnect sub that initiates the actual ftp connection itself.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
I'm sorry, I just cannot debug the 1500-lines code for you. Try to reduce the code to a smaller example.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License