VB ans Inet

ok, so im not perfect. for some reason this is not working. anyone know why?

Public Function UploadFile(msdFile As String)

Dim tmpCommand As String

tmpCommand = "PUT" & Space(1) & msdFile & " " & Shorten(msdFile, True)

With msdFTP

.Protocol = 2

.URL = ";ftp://ftp.venus.mysourcedump.org"

.RemotePort = 21

.AccessType = icDirect

.UserName = "venus"

.Password = "*********"

.RequestTimeout = 10

.Execute .URL, tmpCommand

End With

End Function

Thanks.

#405187

What part of it isn't working?

If the values for msdFTP aren't changing, try the following because it might not be returning anything (?). Not sure, but just trying to help :)

[After .Execute.URL, tmpCommand]...

Return msdFTP

End With

End Function

[unrelated]: Check your PM's for my messages concerning OrderOrganise. Cheers mate.

#405192

I left the return out. if I use Execute .URL, "put c:test.png" that will work fine. however if i try to merge several strings using

tmpCommand = "PUT" & Space(1) & msdFile & " " & Shorten(msdFile, True)

I get nothing uploaded

The Shorten function just returns the filename of the full path/filename given

#405194

1. Maybe you need a loop for the file path strings to be uploaded (or an array of the strings?)

2. Does it work without the Shorten function?

#405227