Action() { //创建一个ftp对象 FTP myftp=0; //创建FTP链接并登陆 ftp_logon_ex(&myftp,"ftpLogon", "URL=ftp://192.168.11.12", LAST); //插入集合点和事务 lr_rendezvous("一块儿上传文件"); lr_start_transaction("文件上传"); //上传文件 ftp_put_ex(&myftp,"fupPutFile", "SOURCE_PATH=c:\\{filenames}", "TARGET_PATH=/files/{filenames}",ENDITEM, LAST); lr_end_transaction("文件上传", LR_AUTO); //释放FTP链接 ftp_logout_ex(&myftp); return 0; }