CoreFTP script commands in a file instead of site

Core FTP client questions and answers
Locked
rohan_CoreFTP
Posts: 1
Joined: Fri May 29, 2020 7:49 pm

CoreFTP script commands in a file instead of site

Post by rohan_CoreFTP »

Hi all,

How do I put GET / PUT commands in a file and use that with CoreFTP instead of using a site? :?

EG:

instead of:
coreftp -site mysite -u c:\myfile.txt -p /remote/myfile.txt


i want to do something like: --

coreftp -myscript.txt

myscript.txt contains:
OPEN ftp://username@password:ftp_location
PUT file.txt
EXIT
ForumAdmin
Site Admin
Posts: 983
Joined: Mon Mar 24, 2003 4:37 am

Re: CoreFTP script commands in a file instead of site

Post by ForumAdmin »

corecmd.exe -s -site <siteprofile> -scal <c:\path\scriptname.txt>

Instead of using OPEN specify the site profile or URL in the command line. Most FTP commands are supported (or emulated for SFTP).



See help file topic "command line":

Script Options:

-scbl <filename>-- Run script from file before logon

-scal <filename>-- Run script from file after logon

-scbt <filename>-- Run script from file before transfer

-scat <filename>-- Run script from file after transfer
Locked