VB读取远程机器上的文件一般是采用什么办法呢?
小弟新手,请各位高手给些指导意见,谢谢。同样帖子请见:
http://topic.csdn.net/u/20091018/15/dacf5c17-2b70-4f32-860f-d0d5a3f62cb1.html?83857
小弟新手,请各位高手给些指导意见,谢谢。同样帖子请见:
http://topic.csdn.net/u/20091018/15/dacf5c17-2b70-4f32-860f-d0d5a3f62cb1.html?83857
' Dim strURL As String 'URL 字符串
' Dim intFile As Integer '可用文件变量
' intFile = FreeFile()
' strURL = "http://192.168.0.5/recentnote/人员增编申请表.doc"
' Open "E:\新建文件夹\人员增编申请表.doc" For Output _
' As #intFile
' Write #intFile, Inet1.OpenURL(strURL)
' Close #intFile
'或者下面的方法:
Dim b() As Byte
Dim strURL As String
'设置 strURL 为一个有效的地址。
strURL = "http://192.168.0.5/recentnote/人员增编申请表.doc"
b() = Inet1.OpenURL(strURL, icByteArray)
Open "E:\新建文件夹\人员增编申请表.doc" For Binary Access Write As #1
Put #1, , b()
Close #1
这个方法我知道诶。
想请教一下,方法支持UNC路径吗?不用任何控件。