File: D:/bin/webbackup/test.cmd
:: SS, 11/01/2019
:: just testing FTP
:: parameter of host must be specified e.g. secure, plusnet, hyperoptic, virginmedia
set ftpexe=d:\bin\winscp\winscp.com
@echo off
:: build the operations file
::echo open sftp://webbackup:oscaris10@%1.ontheworldweb.com:22 -hostkey="0b:5a:0b:9b:34:29:01:2c:96:d9:38:26:4a:28:34:90" -rawsettings Cipher=blowfish>ftpoptest.txt
echo open sftp://webbackup:oscaris10#@%1.ontheworldweb.com:22 >ftpoptest.txt
echo option batch continue>>ftpoptest.txt
echo option confirm off>>ftpoptest.txt
echo binary>>ftpoptest.txt
echo put t:\backups\FTPTestFile.rar>>ftpoptest.txt
echo exit>>ftpoptest.txt
:: FTP the file to ontheworldweb server
%ftpexe% /script=ftpoptest.txt