There are 2 problems in one place "C:\test.txt" Problem 1: FTP servers don't use absolute path names; they use names relative to the "FTP root" directory. FTP root could be different for different servers. For IIS the default root is C:\Inetpub\ftproot, but it can be and should be changed. So every file name should be relative to that path. If you have a subfolder "data" within the root and then inside that subfolder file "myfile.txt" then the file name to be used with FTP would be "data/myfile.txt" or "data\\myfile.txt" Problem 2: Usage of backslashes in 24x7. In run-time if you didn't change the default escape symbol value "C:\test.txt" will convert to "C:[tab character]est.txt". Use double-backslashes to escape backslash ("C:\\test.txt") or change the escape symbol in options. For more info please see FAQ section in the on-line help. : Hi, : I'm trying to get the secure FTP working, and I've got only these two lines : so far: FTPConfig ( "FTP PROTOCOL", "SECURE" ) : FTPPutFile ( "ftps.******.com", "username", : "password", "C:\test.txt", "test.txt" ) : I know the SFTP site is working since I can connect to it with a secure FTP : client. : This is the error message I get when I run the debugger on it: Line 2: Could : not connect to server ftps.******.com. : Service not available. Extended error code: 4. : Could you please shed some light on this? : Thanks!
|