[RESOLVED] Need help with FTP uploading
Hello.
I got my ftp uploader 50% finished but 1 problem,
current code:
Code:
ITC.Protocol = icFTP
ITC.URL = "no"
ITC.username = "not"
ITC.Password = "funny"
ITC.Execute ITC.URL, "PUT C:\lol.txt"
The thing is, PUT C:\lol.txt MUST be inside " "
I have tried "PUT", "c:\lol.txt" but that doesnt work.
I really need a working code that can have variables inside like:
"PUT", app.path & and so on...
Re: Need help with FTP uploading
Did you try
PUT "C:\lol.txt"
Re: Need help with FTP uploading
I need like this:
PUT "C:\folder\" & variablehere & "\lol.txt"
Re: Need help with FTP uploading
Ok. What happens when you do that?
Re: Need help with FTP uploading
It.. well... It doesnt do anything. Says msgbox ("TRANSFER COMPLETE")
But really it doesnt upload
Re: Need help with FTP uploading
Quote:
Originally Posted by masterkert3
I need like this:
PUT "C:\folder\" & variablehere & "\lol.txt"
Have you tried a slightly different variation
Code:
ITC.Execute ITC.URL, "PUT " & "C:\folder\" & variablehere & "\lol.txt"
Re: Need help with FTP uploading
NICE WORK!
it works :P
I never thought of that hehe