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

Ada

fix it

Hi Martin,

Thank you for your replying. Now after I change the mySession.ExecuteCommand("CWD 'AAA.BBB.CCC'"), it works.
Thanks,
Ada
martin

Re: WinSCP5.9.5 support mainframe?

Did you try GetFiles("'ABCD.EFGH.XYZ'/abc", ...?
Ada

WinSCP5.9.5 support mainframe?

Hi Martin,

I need to use WinSCP to implement FTPS protocol transfer files between Window server 2008 to IBM mainframe.
I could use the WinSCP.com from command line to connect to mainframe, and use "cd 'ABCD.EFGH.XYZ'", then "GET abc C:\temp\" to get dataset 'ABCD.EFGH.XYZ.abc' from mainframe to windows server. But when I reference WinSCPnet.tlb in my vb6 project,( I already successfully register the WinSCPnet.dll to server, and could debug to open the session), when I connect to mainframe, I couldn't GetFiles('ABCD.EFGH.XYZ.abc',C:\temp\"). I tried to mySession.ExecuteCommand "CD 'ABCD.EFGH.XYZ'", debug is OK, but try GetFiles("abc",C:\temp\"), the transferResult.Check is failed. the following error message is "FtpFiles Error: -2146233088 - Can't get attributes of file 'abc'. File or folder 'abc' does not exist."

So I want to know why WinSCP.com supports mainframe, but WinSCPnet.dll doesn't support mainframe?