资源管理器重新启动时禁用库窗口弹出
我编写了一个应用程序,可以更改一些注册表设置,然后重新启动资源管理器以保存它们。每次重新启动资源管理器时,都会出现恼人的“库”弹出窗口。
我想通过 C# 代码以某种方式禁用它(可能通过调整其他一些注册表项)。但是,我不想禁用库功能,只是在重新启动资源管理器时出现一个弹出窗口。
网络上的所有文章都展示了如何完全禁用库。
I have written an application that changes some of the registry settings and then restarts explorer to save them. Everytime explorer is restarted an annoying "Libraries" popup comes up.
I want to disable it somehow though C# code, (probably by tweaking some other registry keys). However, I do NOT want to disable libraries feature, just a popup that comes up when explorer is restarted.
All articles on the web show how to disable libraries completely.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发生这种情况的最可能的原因是上次资源管理器自然关闭时(即上次用户注销时)“库”窗口是打开的。如果您关闭窗口并注销,然后再次登录,您的软件可能会正常工作。
警告:终止并重新启动资源管理器进程本质上是有风险的。解决这个特定问题并不意味着将来不会出现其他类似问题。
The most likely reason for this to happen is that the Libraries window was open the last time Explorer was shut down naturally, i.e., the last time the user logged off. If you close the window and log off, then log in again, your software will probably work correctly.
Caveat: killing and restarting the explorer process is inherently risky. Resolving this particular issue does not mean that other similar issues won't show up in future.
重新启动资源管理器时,我只需添加一些随机参数,因为它似乎默认为“库”窗口。因此调用“explorer.exe xxx”将导致资源管理器忽略默认参数。
When restarting explorer I just had to add some randow parameter as it seems to default to Libraries window. so calling "explorer.exe xxx" would cause explorer to ignore default parameters.