使用WMI C#读取/写入远程文件 [英] Read/Write Remote File using WMI C#

查看:158
本文介绍了使用WMI C#读取/写入远程文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要读写(更新)一些远程计算机文件.我能够使用WMI(System.Management)查找远程文件,但不能对此进行读取或更新.

I need to read and write(update) some remote machine file.I am able to find the remote file using WMI(System.Management) but not able to do read or updation on that.

任何帮助将不胜感激.

谢谢

Himanshu

推荐答案

WMI没有任何用于读取或写入文件内容的类(或方法).您只能使用复制删除

The WMI doesn't have any class (or method) to read or write the content of files. You may only retrieve the metadata (FileName, Date, Size) of the files using CIM_DataFile, or do tasks like Copy, Rename, Delete or Compress files.

这篇关于使用WMI C#读取/写入远程文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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