无法在系统目录中调用创建或删除文件 [英] failed to call create or delete file in system dir

查看:92
本文介绍了无法在系统目录中调用创建或删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

专家:

i希望在系统目录中创建文件或删除文件,如c:\ windows \ winsxs,当我调用create file或者删除

文件时win7或win8,最后一个错误是5,我有管理员权限。我能怎么做?谢谢。

experts:
i want to create file or delete file in system dir like c:\windows\winsxs, when i call create file or delete
file on win7 or win8, the last error is 5, and i have administrator priviledge. how can i do? thank you.

推荐答案

错误代码5表示 ERROR_ACCESS_DENIED 如上所述此处 [ ^ ]。您需要向项目中添加一个请求管理员权限的清单,或者在启动它时使用Windows资源管理器中的以管理员身份运行链接。
Error code 5 means ERROR_ACCESS_DENIED as described here[^]. You need to add a manifest to your project that requests administrator privilege for the program, or use the "Run as administrator" link in Windows Explorer when starting it.


这篇关于无法在系统目录中调用创建或删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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