AS/400 IFS - Command file to login and copy file

MrSlate

Member
I have created a simple command file to copy a file from a network drive to an IFS directory. Is their a way to to include the user name and password so the user does not have to enter them. I have tried numerous times but can not get the syntax right.
 

tpayne

Reputable Poster
I'm not sure how you are doing the copy, but using FTP might be another option. You should be able to set up an FTP script that can login to the AS400. Probably creating a special user/pw that is not permitted to open a session and has limited capabilities would be the safest way to do this as well.
 

MrSlate

Member
I have tried using a copy command in a .bat file. Everything works but the user has to enter the login name and passward. The ftp process is fine to open and log in to the server but I don't know how to put the file into an IFS directory.
 

MrSlate

Member
Found what I needed. Using ftp and changing the naming format using the following command allows me to access the IFS using standard directory structure: quote site namefmt 1
 
Top