通过WMI在LAN上发送文件 [英] Send File Over LAN throughout WMI

查看:81
本文介绍了通过WMI在LAN上发送文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey Guys,

我正在开发一个基于Dialog的Win32应用程序(我知道这很古老 - 客户的要求)。



在我的程序中,我需要将文件发送到通过LAN连接的不同远程机器(没有客户端)。应用程序应该在域服务器上运行 - 因此凭据不应该是一个问题。



我已经在远程计算机上执行了一些WMI任务。所以我想知道是否可以通过WMI发送文件。它有多可靠?你能指点我一些样品......



给所有帮助的人全点...

提前谢谢......



-

Varun

Hey Guys,
I am developing a Dialog based Win32 application (I know that''s ancient - Client''s requirement).

In my program, I need to send a file to different remote machines connected via LAN (without client). The application is supposed to run on domain server - so credentials should not be an issue.

I am already performing some WMI tasks on remote machines. So I wondered whether it is possible to send file through WMI. How reliable would it be? Could you direct me to some sample too...

Full points to anybody who helps...
Thanks in advance...

--
Varun

推荐答案

而不是发送文件,使其在LAN上可用于客户端。该文件可能会或可能不会显示给这些客户端本地,但始终可供他们使用。这可以通过各种技术完成:共享文件系统(Windows共享,samba,nfs,...),http,ftp / ftps,...



正在做这样,文件将在服务器上本地创建和管理(具有完整的本地凭据,并且可以根据您的选择进行readonly / readwrite),并且您可以控制对客户端的访问,客户应该从他们的角度看待它只读视图。



tl; dr:换句话说,将推从服务器更改为从客户端拉。
Instead of "sending" the file, make it available on the LAN to the clients. The file may or may not appear ''local'' to those clients, but will always be available to them. This can be done with various technologies: shared file system (Windows share, samba, nfs, ...), http, ftp/ftps, ...

Doing it this way, the file will be created and managed locally on the server (with full local credentials, and readonly/readwrite at your choice) and you can control access to the clients, who should see it ''readonly'' from their point of view.

tl;dr: In other words, change "push" from the server to "pull" from the clients.


这篇关于通过WMI在LAN上发送文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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