VB 上传ftp
利用inte上传文件代码如下Inet1.Execute"ftp://username:password@hostname",_"PUT"&local_filename&"...
利用inte上传文件
代码如下
Inet1.Execute "ftp://username:password@hostname", _
"PUT" &local_filename & " UPLOAD1.TXT"
right1 = Inet1.StillExecuting
Do While right1
right1 = Inet1.StillExecuting
DoEvents
Loop
有一句代码写不好 就下面这句
"PUT" &local_filename & " UPLOAD1.TXT"
急急急 高手何在
只要写个例子
比如 C:\Program Files\abc.abc 这个文件的路径 如何写道代码中去 展开
代码如下
Inet1.Execute "ftp://username:password@hostname", _
"PUT" &local_filename & " UPLOAD1.TXT"
right1 = Inet1.StillExecuting
Do While right1
right1 = Inet1.StillExecuting
DoEvents
Loop
有一句代码写不好 就下面这句
"PUT" &local_filename & " UPLOAD1.TXT"
急急急 高手何在
只要写个例子
比如 C:\Program Files\abc.abc 这个文件的路径 如何写道代码中去 展开
展开全部
Private Sub Command1_Click()
Inet1.URL = "ftp://210.83.61.42/"
Inet1.Password = "111"
Inet1.UserName = "111"
Inet1.OpenURL
Inet1.Execute , "put d:\a.txt /d:/ftp/wwwroot/a.txt" 'put方法,d:\a.txt是本地路径
Inet1.Execute , "QUIT"
End Sub
Inet1.URL = "ftp://210.83.61.42/"
Inet1.Password = "111"
Inet1.UserName = "111"
Inet1.OpenURL
Inet1.Execute , "put d:\a.txt /d:/ftp/wwwroot/a.txt" 'put方法,d:\a.txt是本地路径
Inet1.Execute , "QUIT"
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询