允许Windows屏幕保护程序写入程序文件中的文件 [英] Allow a Windows screensaver to write to a file in Program Files
问题描述
在创建需要写入位于Program Files中的文件的屏幕保护程序后,我遇到了问题。当屏幕保护程序变为活动状态时,它可以从那里成功读取文件,但是无法写入文件。
I ran into a problem after creating a screensaver that requires writing to a file located in Program Files. When the screensaver becomes active it can successfully read a file from there but fails to write to a file.
我注意到当我使用提升的命令提示符运行屏幕保护程序时,带有/ s的屏幕保护程序成功写入了文件。所以我认为这是一个权限问题。
I noticed that when I use and elevated command prompt to run the screensaver, with /s, the screensaver successfully writes the file. So I assumed this was a permission problem.
要查看是否是权限问题,我进入并更改了Program Files和subfolders权限,以便任何人和系统都可以读写,但仍然没有帮帮我。
To see if it was a permission problem I went in and changed Program Files and the subfolders permissions so that anyone and system could read and write, but it still didn't help.
知道我应该怎么做吗?有没有办法强制屏幕保护程序以管理员身份运行?还是我错过了一些重要的权限?
Any idea what I should do? Is there a way to force a screensaver to run as admin? Or did I miss some important permissions?
推荐答案
您无法让系统以提升的权限启动屏幕保护程序。如果这是可能的话,那将是真正的骨头安全和设计缺陷。屏幕保护程序不应仅写入程序文件或其他限制区域。您将必须找到其他位置来写入此文件。
You can't get the system to start screensavers with elevated rights. If that were possible then it would be a truly bone-headed security and design flaw. Screensavers should simply not be writing to Program Files or other restricted areas. You will have to find a different location to write this file.
这篇关于允许Windows屏幕保护程序写入程序文件中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!