本文介绍了是否有Windows注册表项,可以在系统重新启动后删除这些值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个在注册表中某个键处创建Windows值的应用程序,但是当系统重新启动时,我希望该值被消除. 战车, Apostolo
I want create an application that creates a windows value at some key in the Registry, but when system reboots I want that that values is eliminated. Tanks, Apostolo
推荐答案RunOnce或RunOnceEx就是为此目的 The RunOnce or RunOnceEx is meant for this
如何创建一个简单的控制台应用程序,该应用程序将删除所有注册表要删除的项,然后将该控制台应用程序作为RunOnce应用程序放入注册表中. 不是很优雅...但是它可以完成工作,这可能是唯一的方法. How about you create a simple console app that will remove any registry keys you want to remove and then put that console app as a RunOnce app in the registry. Not very elegant...but it would get the job done and it may be the only way to do it.
答案1 RunOnce或RunOnceEx专门用于此 固定链接|邮局坏了吗?报告 发表于1小时前 马克·尼沙尔克 代表:29,330(45,524) 我认为不是,RunOnce是要添加将在启动时运行的应用程序列表,并且系统将在应用程序启动后删除密钥. 如果我在启动时尝试使用无效的应用程序文件创建密钥,则Windows将启动错误提示,提示它无法打开文件. 我想要的是,对不起,如果以前没有做过解释,那就是在下次Windows启动时创建一个临时密钥,该密钥不再存在. 感谢您的快速答复,但我认为这对我没有用 Answer 1 The RunOnce or RunOnceEx is meant for this Permalink | Broken Post? Report Posted 1 hour ago Mark Nischalke Rep: 29,330 (45,524) I think not, The RunOnce is to add a list of app that will run at startup and the system will delete the key after the app launch. If I try to create a key with a non valid app file at the startup the windows will launch an error mensage that it can not open the file. What I want, and sorry if a didn''t explain before is to create a temporary key wich at the next windows startup it isn''t there anymore. Thanks for your quick answer, but I think It it not useful for me
更多推荐
是否有Windows注册表项,可以在系统重新启动后删除这些值
发布评论