Problem solve Get help with specific problems with your technologies, process and projects.

An FTP script to get a file from a PC to AS/400

ISeries PC/Windows connectivity expert Shahar Mor gives an example of an FTP script that will move a file from a PC to AS/400.

I am unfamiliar with FTP. I need to get a file from my PC to AS/400. Do you have an example of the script?

It is very easy. Your FTP script reads a text file (i.e. script.txt) that looks like this:

open ftp.mysite.com
cd as400lib
lcd pcdir
put file

Where user – User on the iSeries
Password – Password on the iSeries
As400lib – Name of AS/400 library
Pcdir – Name of PC directory
File – Name of file to send

Then you could execute it like this:


Dig Deeper on FTP