网络邻居中有一个共享目录,下面有不少文件,我想通过网络直接获取,请问如何做?谢谢!

解决方案 »

  1.   

    delphi做的{=================================================================
      功  能: 映射网络驱动器
      参  数:
              NetPath: 想要映射的网络路径
              Password: 访问密码
              Localpath 本地路径
      返回值: 成功:  True  失败: False;
      备 注:
      版 本:
         1.0  2002/10/03 09:24:00
    =================================================================}
    Function NetAddConnection(NetPath: Pchar; PassWord: Pchar
                              ;LocalPath: Pchar): Boolean;
    var
      Res: Dword;
    begin
      Result := False;
      Res := WNetAddConnection(NetPath,Password,LocalPath);
      if Res <> No_Error then exit;
      Result := True;
    end;