读取远程目录中的文件(数据) [英] Reading files ( data ) in a remote directory

查看:87
本文介绍了读取远程目录中的文件(数据)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,
在尝试探索时,我再次有一个查询!!!
我想读取远程计算机中存在的所有文件和文件夹并对其进行操作.
如何使用Windows C程序(win32Api)实现此目的?
如果您能告诉我任何明确包含有关我要执行的任务的信息的书或网站,请告诉我.
感谢您的回应.

问候,
Kiran.

Hi Team,
As I am trying to explore, I have a query again!!!
I want to read all files and folders present in a remote machine and manipulate them.
How can i achieve this using Windows C programs ( win32Api )
Atleast if can you please tell me any book or site which explicitly has information about these tasks which i wanted to perform.
Appreciate your responses.

Regards,
Kiran.

推荐答案

在远程计算机上创建一个共享,该共享公开目录并为共享和目录(包括文件)提供适当的访问权限.使用UNC路径访问具有正常Win32API功能的文件以进行文件访问:\\ server.domain.xxx \ sharename \ directory1 \ ... \ filename.extension
如果您具有管理权限,甚至可以使用管理共享\\ server.domain.xxx \ c
Create a share on the remote machine that exposes the directory and give the proper access rights to both the share and the directory (including the files). Access the files with normal Win32API function for file access using UNC paths e.g.: \\server.domain.xxx\sharename\directory1\...\filename.extension
If you have administrative rights you can even use the admin shares \\server.domain.xxx\c


等.

这也意味着,SMB中使用的端口当然必须从您的计算机打开到远程.如果您在与WAN连接相对的LAN上进行操作(这种情况很可能不是这种情况),则更有可能出现这种情况.

干杯!

-MRB
etc.

This also means that the ports used in SMB would have to be open from your machine to the remote of course. This is more likely the case if you operating on a LAN opposed to a WAN connection where this most likely not the case.

Cheers!

-MRB


这篇关于读取远程目录中的文件(数据)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆