Can the following FTP script be converted to WinSCP?

Advertisement

JustAsking
Joined:
Posts:
14

Can the following FTP script be converted to WinSCP?

The following script works under Windows FTP just fine but I want better control, security, and error catching so would like to have this work as WinSCP commands under Windows Powershell. Can it be made to work? Thanks.

(Powershell prompt) ftp {iSeries IP address}
{iSeries user}
{iSeries password}
quote site namefmt 0
cd {user directory}
quote rcmd {user directory}/{program}
get data files\data.DAT
quit

Reply with quote

Advertisement

salvadortorres
Joined:
Posts:
1
Location:
USA

Yes. There's a guide.This guide explains how to convert existing FTP file transfer script using Windows built-in command-line FTP client (ftp.exe) to SFTP script using WinSCP.You can also use it to convert FTP script using ftp.exe to WinSCP, in case you want to use some advanced feature that WinSCP offers, such as FTP over TLS/SSL, synchronization, passive mode1), parametrized script, timestamped file names, custom directory listing format, UTF-8 support, preserving file timestamp, recursive downloads and uploads, and others.

Reply with quote

Advertisement

You can post new topics in this forum