| 发表于:2007-01-29 21:22:13 楼主 |
帮忙看下,连家里自己的电脑127.0.0.1可以,连单位的就不行,我远程看单位的ftp服务器,我已经登陆上了,但是文件传不上去,why? '上传文件 fopen = internetopen(vbnullstring, internet_open_type_preconfig, vbnullstring, vbnullstring, 0&) if fopen then fconn = internetconnect(fopen, "127.0.0.1 ", 0, "user ", "user ", 1, 0, 0) if fconn then fput = ftpputfile(fconn, pathname, fin, 1, 0) if fput then msgbox "上传成功 " end if internetclosehandle fconn internetclosehandle fopen msgbox "关闭成功 " else msgbox "连接失败 " end if else msgbox "服务忙 " end if end sub 在家里自己的电脑上可以上传,但是把ip及用户名和密码改成远程的自己公司的ftp就不行,没有msgbox“上传成功”,直接跳到msgbox "关闭成功 "了,文件没有传上去,为什么?help me |
|
|
|
|