比如我要取得网络中192.168.1.1这台电脑D:\123\TEST.TXT文件的内容怎么处理?

解决方案 »

  1.   

    首先对方必须共享出来你才能访问。
    然后你用下面的形式映射成网络驱动器,就可以与本地文件一样进行读取了。
    Shell "net use z: \\192.168.1.1\sharefolder"
      

  2.   

    有共享就行。
    参考
    \\10.1.13.206\c$\test\
      

  3.   

    [code=VB][/code]
      

  4.   

    http://topic.csdn.net/t/20020630/09/838860.html
      

  5.   

    还想问下
    比如我读到test.txt 第一行的数据有 LAJ0B100401098 LMJ13J95159889 0006F418B0B7
    我数据库中表text中有一行有 LAJ0B100401098 1101JN00S10040000031S
    我如何以相同的LAJ0B100401098为条件将 LMJ13J95159889 0006F418B0B7存入test表中LAJ0B100401098这行,
    我想得到的结果就是test中 LAJ0B100401098 1101JN00S10040000031S LMJ13J95159889 0006F418B0B7
      

  6.   

    共享文件夹不太安全,是否考虑用ftp下载文件再读取内容
      

  7.   

    用FTP下载后再读取的话处理会慢很多
      

  8.   

    dim hFile as integer
    dim sLine as string
    dim a() as stringhFile = FreeFile()
    Open "Z:\test.txt" for input access read as #hfile
    Line Input #hFile, sLine
    Close #hFilea = Split(sLine, " ")dim cn as ADODB.Connection
    set cn = new ADODB.Connection
    cn.Execute "Update test set field3='" & a(1) & "'" & _
               ", field4='" & a(2) & "'" & _
               " where field1='" & a(0) & "'"
      

  9.   

    为了使用一个程序 还得开个ftp?
      

  10.   

    使用网络路径\\192.168.X.X\D$\123\TEST.TXT 就和本地路径一样打开文件,前提是你有权限访问该机器