Topic "Post Login Commands"

Author Message
nebmo
[View user's profile]

Joined: 2014-10-30
Posts: 2
Location: Sverige
Does WinSCP .net dll support PostLoginCommands? Trying to ftp to AS/400 but that requires library/file/member pattern.
Or do I have to use ini-file somehow? Example with ini-file

[Sessions\xxxx]
HostName=xxxxx
PortNumber=21
UserName=my-userid
FSProtocol=5
LocalDirectory=C:%5CUsers%5Cxx%5CDocuments
UpdateDirectories=0
PostLoginCommands=site%20namefmt%201%0D%0Asite%20listfmt%201%0D%0Acwd%20/qsys.lib/tp01edi01.lib/edispstai.file
Password=my-encrypted-password
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Use SessionOptions.AddRawSettings("PostLoginCommands", "site%20namefmt%201%0D%0Asite%20listfmt%201%0D%0Acwd%20/qsys.lib/tp01edi01.lib/edispstai.file")

See documentation:
http://winscp.net/eng/docs/library_sessionoptions
http://winscp.net/eng/docs/rawsettings
_________________
Martin Prikryl
nebmo
[View user's profile]

Joined: 2014-10-30
Posts: 2
Location: Sverige
Thank you very much Martin! Looks like it is working:)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
I have documented the AS/400 commands:
http://winscp.net/eng/docs/ui_login_ftp#post_login
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