Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 vc++ 中编写代码以将远程机器(远程机器上运行 FTP 服务器)挂载为我的 PC 上的本地驱动器。
请推荐可以使用 ftp 协议挂载远程机器的 API,例如“WNetAddConnection2”使用 smb 协议。
或者请提出相同的建议。
提前致谢 !!!
手动可以通过windows电脑中的“添加网络驱动器”选项来完成,你需要填写服务器的ftp地址,它将被挂载为本地驱动器。
你好。这不是一项微不足道的任务。将远程机器安装为磁盘需要许多 API。对于 FTP 可以使用 FTP 系列的 WinInet 函数,对于 Shell 需要 pidls 和许多相关的 shell 函数的知识。
而是使用 MSIEFTP.DLL/Microsoft Internet Explorer FTP 文件夹外壳扩展。:-)