Using FTP.dll and string variables for connection details

richt

Member
Licensed User
Hi chaps,

Bit of a weird one this.

I can connect to an FTP server I have using the FTP dll perfectly fine if I specify the connection server, username and password directly to the command. i.e hard coded.

However, if I put the connection values into variables the ftp username throws an error that otherwise worked before.

The username in question is 'Brinkster/username'

I think the problem is obviously the forward slash but I don't know how to get around it. Changing the ftp username is not an option either.

Thanks in advance,

Rich
 

richt

Member
Licensed User
Thanks Erel!

I could of sworn there were no extra spaces stored but when I put a StrReplace(username," ","") before the ftp command it worked!

Thanks again
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…