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
CoreFTP script commands in a file instead of site
-
- Posts: 1
- Joined: Fri May 29, 2020 7:49 pm
-
- Site Admin
- Posts: 987
- Joined: Mon Mar 24, 2003 4:37 am
Re: CoreFTP script commands in a file instead of site
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
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