-
I have a file on an internet FTP site that i have to xfer to an AS400 FTP site that doesn't have internet access.
So i have to copy the file to my computer then xfer it to the AS400 ftp site.
Is there some VB code that will FTP straight to my AS400 or use my computer as a redirector. either way. has anyone ever tryed this?
-
Since there is not net access on the AS400 FTP comp. then you can't retreive the file right from the online ftp...however...you can download the file to your box and then transfer it to the AS400 using winsock and a server/client type of way.
Here is how to download it from the online FTP:
Code:
With Inet1
.Cancel
.Protocol = icFTP
.url = "123.123.123.123"
.UserName = "me"
.Password = "xxxx"
End With
'Download the file.
Inet1.Execute , "Get test.txt C:\test.txt"
and this will tranfer it to the other comp take a look at this thread.
Gl,
D!m