import console; import inet.ftp; var p = string.split(_CMDLINE," "); if(p[1]!=null and p[2]!=null and p[3]!=null and p[4]!=null and p[5]!=null){ ftp = inet.ftp(p[1],p[2],p[3]); if(!ftp){ console.log("请输入正确的服务器参数"); return; } file = ftp.upload(p[4],p[5],2) ftp.close() }else{ console.log('参数:服务器 用户名 密码 源文件 目标ftp路径\n所有参数不能包含空格'); } console.close();
65 queries in 5.639 seconds |