简体   繁体   English

如何使用C#在远程Windows机器上创建共享文件夹?

[英]How to create a shared folder on a remote Windows machine using C#?

I want to manage shared folders on a remote machine from a C# application. 我想从C#应用程序管理远程计算机上的共享文件夹。 Is there a way to do this using C#? 有没有办法用C#做到这一点?

I know WMI can do remote management but I haven't found a way to manage file and folder sharing. 我知道WMI可以进行远程管理,但我还没有找到管理文件和文件夹共享的方法。

The Win32_Share WMI class can be used to manage shared resources, including folders. Win32_Share WMI类可用于管理共享资源,包括文件夹。 The MSDN documentation page includes some sample code for creating a share (see the example by Radjin Sardjoe Missier on that page). MSDN文档页面包含一些用于创建共享的示例代码(请参阅Radjin Sardjoe Missier在该页面上的示例)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在远程计算机上创建文件夹C# - how to create a folder on remote machine c# 使用 C# 将文件保存在远程计算机的文件夹或共享文件夹中。 远程机器在另一个域中 - Use C# to save a file in a folder or shared folder in a remote machine. The remote machine is in another domain C# - 如何获取有权访问远程计算机上共享文件夹的USER / GROUP列表 - C# - How to get list of USERs/GROUPs having access to shared folder on a Remote Machine 如何使用C#在远程位置创建文件夹 - How to create the folder in a remote place using C# 如何使用C#/ vb从远程计算机启动Windows 10上的远程注册表服务 - How to start remote registry services on windows 10 from a remote machine using c#/vb 如果在另一台计算机上打开目录,如何使用c#代码删除共享文件夹? - How to delete a shared folder using c# code if the directory is opened on another machine? 如何使用C#将文件从远程Windows计算机复制到另一Windows计算机? - How to copy files from remote windows machines to another windows machine using C#? 使用C#访问其他计算机的共享文件夹 - Access a shared folder of a different machine with C# 如何使用C#在远程计算机中启动或停止IIS以及Windows服务 - How to start or stop IIS and also a Windows Service in remote machine using C# 如何在C#中创建具有只读访问权限的共享文件夹? - how to create shared folder in C# with read only access?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM