how do i direct connect to a ftp server and send a file, can anyone send me a demo of how to do it or some of the code ?
Many Thanks.
Printable View
how do i direct connect to a ftp server and send a file, can anyone send me a demo of how to do it or some of the code ?
Many Thanks.
I have been trying to do this for months. I have eventuly finished but i am missing the code to enable progress.
Visit my website for details about the ftp and e-mail me if you want the source.
Hope that helps,Code:With Inet1
.Cancel
.Protocol = icFTP
.url = "123.123.123.123"
.UserName = "me"
.Password = "xxxx"
End With
'upload a file
Inet1.Execute , "PUT C:\test.txt test.txt"
'download file and download it to C:\test.txt
Inet1.Execute , "Get test.txt C:\test.txt"
D!m
The code you presented really works and that's what actually I've been using but what if I want to use winsock control? I know, as they say, that winsock control is far more better than the inet control.
That is very true...and for winsock transfers...please reffer to this example.
Gl,
D!m
Thanks Guys.
OK, how would i upload the file 'C:\test.txt' into the directory 'psyvision-soft.net' because my server starts in the dir before the one i want it in