如何以编程方式访问标准用户没有权限的文件夹 [英] how to access the folder programmaticly for which standard user don't have the permission

查看:75
本文介绍了如何以编程方式访问标准用户没有权限的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个由管理员创建的文件夹,标准用户没有权限在该文件夹中创建文件。但是当我尝试在C ++的帮助下运行一个函数时,它应该允许我创建一个文件。有些人可以借助C ++代码帮助我如何做到这一点。



谢谢,

Nagaraj BR

Hi,

I have a folder which is created by administrator for which standard user dont have permission to create a file in that folder. but when i try to run a function with the help of C++ it should allow me to create a file. Can some body help me to how to do this with the help of C++ code.

Thanks,
Nagaraj B R

推荐答案

看一下 CreateProcessAsUser函数 [ ^ ]



一个很好的谷歌搜索用于查找其他解决方案是c ++运行过程作为管理员 - 因为有各种各样的这可以实现。



要在我们的网站上解决这个问题,我们在具有受限权限的网络服务器上设置共享,用户可以在其中创建文件但不能随后更改或删除它
Have a look at the CreateProcessAsUser function [^]

A good google search to use to find other solutions is "c++ run process as administrator" - as there are a variety of ways this could be achieved.

To get around this at our site we set up shares on network servers with restricted permissions where the user can create a file but cannot subsequently change or delete it


这篇关于如何以编程方式访问标准用户没有权限的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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