Re: Another Inet question
Try setting the protocol property to 2
Re: Another Inet question
Z.
Thanks a bunch
It still does not do anything, the process ends ok with no errors but no file uploaded either.
Thanks
Re: Another Inet question
You need quote marks around the path/filenames. So change it like this:
Code:
Dim localname As String
Dim remotename As String
localname = Chr(34) & "c:\testfile.txt" & Chr(34)
remotename = Chr(34) & "testfile.txt" & Chr(34)
'
'
'
Re: Another Inet question
JM
Thanks for jumping in.
so do you mean that the string should look like this ""c:\testfile.txt""
Thanks
Re: Another Inet question
You were sending this command:
PUT c:\testfile.txt testfile.txt
but the server needs to see it like this:
PUT "c:\testfile.txt" "testfile.txt"
Re: Another Inet question
no it would look like
"""c:\testfile.txt"""
only essential to do this if the file name does /can contain spaces
i tried the inet code and successfully uploaded a txt file, but it took a few goes to get all the settings right, and no error messages to point to problems, so you just have to persevere until you can get it to work
you need to get the server responses, so you can tell what is happening on your connection
Re: Another Inet question
westconn, """c:\testfile.txt""" is the same as what I posted in #4
localname = Chr(34) & "c:\testfile.txt" & Chr(34) which results to what I posted in #6 PUT "c:\testfile.txt" "testfile.txt"
only essential to do this if the file name does /can contain spaces
Not always so. I have two FTP servers I deal with; one only takes the parameter as I stated it. If I try to either GET or PUT without quotes around the file/path names then the server will not perform the request (just like OP's problem) but when I add the quote marks then the server does the request.
Re: Another Inet question
Thanks gurus, it worked like a charm
1) how can I implement in my code StateChanged event, so I can keep track of the FTP connection and create a log.
Thanks and sorry for the low ball after all your help.
Thanks again