In a CScript that does multiple FTP file transfers, the second transfer can generate the message, “Error (4514) Bad argument to function: Expected number, got undefined.”
The following script also exhibits the problem:
FTSetProtocol(“FTP”);
FTSetHostName(“ftp.domain.net”);
FTSetUserName(“anonymous”);
FTSetPassword(“user@domain.com”);
FTSetSync(1);
FTSetXferStat(false);
FTGet(“/pub/README”,”C:/Temp”);
If you use FTSetXferStat(true); instead of false, the error doesn’t happen. But it does if you set the End of transfer acknowledgement option in TinyTERM’s File Transfer Properties.
This error is not consistent across versions of TinyTERM or Windows, nor does every script with multiple FTP file transfers exhibit the problem.
CR 234, multiple transfer error resolved in TinyTERM 4.7.2, 15 March 2012
CR 778, script