Example of converting Windows FTP script to WinSCP FTP script

Situation: the client has been using Windows FTP command script to upload files. However, the new Syncplify.me FTP is more secure and requires use FTP passive more. Since Windows command line doesn’t support Passive mode, they need to convert windows FTP script to WinSCP FTP script. Here is an example.

  1. Install WinSCP on the client’s computer.

2. Run this command: “C:\Program Files (x86)\WinSCP\winscp.com” open ftp://username:password@IP or FQND:21 -passive=on

for example

“C:\Program Files (x86)\WinSCP\winscp.com” open ftp://blin:Pa$$1357@ftp.chicagotech.net:21 -passive=on

3. Use ls to Lists the contents of remote directory

4. Use put to Uploads file from local directory to remote directory

For example

put *.doc *.jpg /ftp/*

5. Use get to downloads file from remote directory to local directory

6. close Closes session

7. exit Closes all sessions and terminates the program

Published by

Bob Lin

Bob Lin, Chicagotech-MVP, MCSE & CNE Data recovery, Windows OS Recovery, Networking, and Computer Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com