Page 1 of 1

NeobookFMFTP

PostPosted: Thu Sep 28, 2017 5:50 am
by Dudus
Dear All!

can someone show me how to send a specific file to my FTP with NeobookFMFTP without Selecting a file from a local filelist from rectanlge?
I have a C:\test.txt file and i would like to send it to my FTP dircetly. How should i do it? The Remote Connetion is ok.

Thank you!
Dudus

Re: NeobookFMFTP

PostPosted: Thu Sep 28, 2017 7:25 am
by CN_Iceman
It is very easy. Just use the filecopy option.

I am not at home right now (using my smartphone) so I am not sure about the correct command.
Check the help file. I usually use that command to upload txt files to my server.

I think that you must open a local connection and a remote connection. Then use the right filecopy command.

Re: NeobookFMFTP

PostPosted: Thu Sep 28, 2017 10:34 am
by CN_Iceman
Ok, now at home.
I checked my code and it is necessary to open only 1 connection.

This is my code for upload a file to my server.

Code: Select all
fmConnectRemote "MyServer" "ftp.myserver.com" "User=XXXXXXXXX;Password=XXXXXXXXXX;Port=21;Passive=Yes;Timeout=15000;InitialPath="
fmCopyTo "MyServer" "[Your_File]" "GetConfirmation=No;ShowProgress=No"
fmDisconnect "MyServer"

Re: NeobookFMFTP

PostPosted: Fri Sep 29, 2017 1:09 am
by Dudus
Great! :) Thank you so much, and one more question how to download a whole remote FTP directory to my C:\Test for example?

Thank you!
Dudus