通过程序网络共享和执行文件夹的安全性 [英] Execute through programatically network sharing & security of folder

查看:89
本文介绍了通过程序网络共享和执行文件夹的安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c:驱动器中创建一个文件夹,通过Windows向导将共享设置为该文件夹(即,右键单击创建文件夹"->选择共享和安全性".->单击共享"选项卡- >单击网络共享和安全性"选项的在网络上共享此文件夹"和允许网络用户更改我的文件"两个复选框.
与其他网络计算机相比,此网络共享可以访问该文件夹及其包含的文件.

但我想这样做,如何通过上述程序以编程方式执行? 我尝试通过帮助下载编码来尝试上述过程,但仍然无法正常工作...

因此,请尽快提供正确的代码...
我等待您的答复..........

Create a folder in c: drive, set share to that folder by Windows Wizard(i.e. Right click creating folder->Choose option ''Sharing and Security..''->Click ''Share'' Tab-> Click two Check boxes of ''Share this folder on Network'' & ''Allow network users to changes my files'' of Network sharing and security option)
This network sharing can access the folder & its containing files than other network computer.

But i want to do that, how can i execute through programatically above process???
I try & try this above process by helping download coding,still not working that process...

So please please supply to proper code as soon...
I wait for your reply..........

推荐答案

您不会在代码中逐步执行向导.您只需在创建的文件夹上设置共享"和"NTFS"权限.它有点复杂,但是关于设置权限的文章很多,].

您可以使用
本文 [
You don''t step through the wizard in your code. You just set Share and NTFS permissions on the folder you create. It''s a bit complex, but there''s tons of articles on settings permissions here[^].

You can create a Share with this article[^].


这篇关于通过程序网络共享和执行文件夹的安全性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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