存储浏览器帮助程序对象的设置

发布于 2024-09-25 22:13:47 字数 246 浏览 0 评论 0原文

我在 IE 上有一个浏览器帮助器对象,它具有一些“剪贴板历史记录”功能。我一直将设置存储到 BHO 文件所在目录的文件中(当前为“$PROGRAMFILES\Common files\folder\”,当我收到代码时就像这样,但我可以更改它)。

在我的计算机(虚拟机中的 XP SP3)中,我写入设置文件没有问题,但我想知道这可能会导致其他计算机中的“写入权限”问题,如果确实如此,我应该使用什么其他方法来确保它会出现问题?适用于所有 Windows 计算机吗?

I have a browser helper object on IE that have some "clipboard history" functions. I have been storing settings into a file into the directory where the BHO file is (currently "$PROGRAMFILES\Common files\folder\", it was like this when i received the code but i can change it).

In my computer (XP SP3 in virtual machine) I have no problems writing the settings file, but I was wondering it this could cause "writing permission" problems in other computers and if it does what other method should I use to make sure it will work on all Windows computers?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我的影子我的梦 2024-10-02 22:13:47

它肯定可能存在权限问题。我会将文件存储在用户配置文件文件夹中“应用程序数据”或“本地设置\应用程序数据”下的适当子文件夹中。运行它的用户应该始终拥有这些文件夹的写入权限。

It could definitely have permission problems. I would store the file in an appropriate subfolder under the "Application Data" or "Local Settings\Application Data" in user's profile folder. The user running it should always have write permissions to those folders.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文