简体   繁体   English

未出现在启动文件夹中的程序如何在启动时自动执行?

[英]How do programs that don't appear in the startup folder auto-execute on startup?

Just out of curiosity I was wondering how this is done.只是出于好奇,我想知道这是如何完成的。 I know you can probably manually make a program startup using windows scheduler, but for something download from the interwebs, such as Discord, how does it autonomously give itself the ability to run on startup without actually being in the startup folder?我知道您可能可以使用 Windows 调度程序手动启动程序,但是对于从 Internet 下载的某些内容,例如 Discord,它如何自动赋予自己在启动时运行而不实际位于启动文件夹中的能力?

Some applications do not appear in the startup folder but start up automatically anyway.某些应用程序不会出现在启动文件夹中,但无论如何都会自动启动。 Programmers have the ability to disable their application showing up in the startup folder.程序员可以禁用在启动文件夹中显示的应用程序。 To answer your question, it's a decision made by the dev team behind the application.要回答您的问题,这是由应用程序背后的开发团队做出的决定。 Here is a link to disable those applications using the shell: Disable items not in the Startup folder这是使用 shell 禁用这些应用程序的链接:禁用不在启动文件夹中的项目

This article goes into depth about how windows uses registry keys to open applications upon startup. 条进入深度有关Windows如何使用注册表项,以在启动时打开的应用程序。

If you would like to disable discord's auto startup, this is how.如果您想禁用 discord 的自动启动,方法如下

I found the answer elsewhere on this site, here is the link and a quote https://stackoverflow.com/a/20781275/9546874我在本网站的其他地方找到了答案,这里是链接和引用https://stackoverflow.com/a/20781275/9546874

Add a new startup application Open your registry and find the key [HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run].添加新的启动应用程序 打开您的注册表并找到键 [HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run]。

For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable.对于要启动的每个程序,使用描述性名称自动创建一个新的字符串值,并将该字符串的值设置为程序可执行文件。

For example, to automatically start Notepad, add a new entry of "Notepad"="c:\\windows\\notepad.exe".例如,要自动启动记事本,请添加新条目“Notepad”="c:\\windows\\notepad.exe"。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM