4
Contributors
7
Replies
28
Views
3 Years
Discussion Span
Last Post by yosian
0

Hi Klahr,
Klahr be like this, I have a song file. mp3 on the server and sent to another server,
This is a question for my friend,
so please you can also help Klahr_R

thanks

0

To : Klahr

okay thank you very much Klahr,
You always help me,
Okay fine, I understand

0

To : Ahmed.C
Hi Ahmed.C,

yeah you're right,
This is a program for uploading and downloading via FTP Server,
can you give me an example code?

regards,
V

0

I've tried this code but it does not work

Function UploadFile(ByVal HostName As String, _
ByVal UserName As String, _
ByVal Password As String, _
ByVal LocalFileName As String, _
ByVal RemoteFileName As String) As Boolean

Dim FTP As Inet

Set FTP = New Inet
With FTP
.Protocol = icFTP
.RemoteHost = HostName
.UserName = UserName
.Password = Password
.Execute .URL, "Put " + LocalFileName + " " + RemoteFileName
Do While .StillExecuting
DoEvents
Loop
UploadFile = (.ResponseCode = 0)
End With
Set FTP = Nothing
End Function 

can you help me Ahmed C?

thanks

Edited by Dani: Formatting fixed

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.