Using WinSCP in place of CuteFTP9
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.