monica said:
I am trying to find the proper syntax to ftp a file from
an as400 to a Windows 2000 machine. No matter what we
try, it always puts the files in the Windows root directory
If you are using the command-line version of ftp.exe, then use the lcd
(on the Windows 2000 host if that's where you're running the ftp client)
to change the *local* current directory to wherever you want the [m]get
to put the file(s). If you're using a GUI version of FTP, like
FileZilla or SmartFTP, then obviously you can tell where the download
will get stored. You don't mention if you are running the FTP client on
the AS/400 and PUT'ting the file to the Windows 2000 host or running ftp
on the Windows 2000 host and GET'ting it from the AS/400 host.
If you want a list of available commands in your non-GUI ftp client then
simply enter ? or help as a command to list them. For a particular
command, enter "help <cmd>" although such help is often overly terse.
If you are trying to push the file (using PUT from the AS/400 to the
Win2000 host, maybe the FTP server on the Win2000 host won't let you put
files where you want and so you get pushed off to the root directory,
which would be a bad choice, anyway).
--