Topic "WinSCP5.9.5 support mainframe?"

Author Message
Ada

Guest


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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Did you try GetFiles("'ABCD.EFGH.XYZ'/abc", ...?
Ada

Guest


Hi Martin,

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

You can post new topics in this forum






Search

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