Suppose I want to copy a file from a Windows local directory (not on a server) to the AS/400 IFS, how to achieve this using cmd? I know there are other ways like hard drive mapping or iSeries Navigator but the aim here is to use VBA to execute such command so that when someone click a button the target file will be duplicated in the IFS. I tried to use copy command in cmd directly but it failed because the user profile and password were not supplied. So is it possible to achieve this using command in cmd? How? It is acceptable if during the process a window pops up to ask me to fill in user name and password.
Share
Your options with VBA are:
FTP Example
You can create an ftp script file and execute it. Here’s how I usually do it with a batch file:
NetServer Example
You can force a username and password when mapping a drive to the iSeries Netserver: