我以前都是用集成在Dreamweaver里的上传功能上传文件到远程服务器,请问用vb是否可实现类似的上传文件功能?不需要用户选文件上传,一次传一个文件即可。
解决方案 »
- SQL-txt→变体数据问题
- vb无法识别符号•?
- 丐帮新秀Begin2008在此向大家问好,愿意给我施舍分数的好心人赶快进来.
- 请问有没有vb控件的详细介绍,谢谢您
- 求助:关于PSet方法的使用!!
- 将一个表的数据填充到另一个表的,该如何做???急,在线等待
- 在Win2k Server中,如何判断当前用户(或应用)是否有SE_SHUTDOWN_NAME权限?在线...
- 如何利用身份证号来完成一些操作!详情请看下面!谢谢!!
- 以前在他方面帮过我的请来领分
- 1234567七个数 组成多少个质数,分别是?用C语言编写,,急!!!
- 一个MSFlexGrid的问题
- 借宝地,如何求职,请指教?
b/s用vb写个ocx
inet1.Protocol=2-icFTP
inet1.RemoteHost=hostname
inet1.RemotePort=21
inet1.Username=username
inet1.Password=password
For each Item in oFolder.files
curFile=oFolder.path & "\" & Item.name
inet1.execute inet1.url, "put " & curFile & "/目标目录/目标文件名"
Next
请问inet1是什么组件,如何引用?
在部件中添加就OK了
Dim curFile As String
Inet1.URL = "ftp.gjlqjt.com"
Inet1.Protocol = 2 - icFTP
Inet1.RemoteHost = "www.gjlqjt.com"
Inet1.RemotePort = 21
Inet1.UserName = "aaa"
Inet1.Password = "111"
curFile = "e:\temp\abc.htm"
Inet1.Execute Inet1.URL, "put " & curFile & " /www/abc.htm"出错提示:
实时错误‘35753’
协议不支持这种方法
协议更改一下 用缺省的或FTP均行
Inet1.Protocol = icFTP