auto run (auto start)

最後更新: 2024-06-10

目錄

  • Startup Folder
  • Regetry
  • Win 10 Settings

Startup Folder

 

Path:

"%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"

%appdata% => C:\Users\USERNAME\AppData\Roaming

Win 10 startup folder

1. Win + r

2. Copy the run command

shell:startup

# 相當於

%appdata%\Microsoft\Windows\Start Menu\Programs\Startup

 

shell:common startup

# 相當於

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

 


Regetry

 

HKLM\Software\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce

 * The String value for a key is a command line no longer than 260 characters

-> New String Value

CTFMON.EXE

Run 與 RunOnce

RunOnce key is deleted before the command line is run.

prefix a RunOnce value name with an exclamation point (!) to defer deletion of the value until after the command runs.

Time to run

Run and RunOnce keys are run each time a new user logs in.

RunServices and RunServicesOnce are run in the background when the logon dialog box first appears or

at this stage of the boot process if there is no logon.

 


Win 10 Settings

 

"Start" button > select "Settings"  > Apps > Startup

Or

Task Manager > select "Startup" tab

 

Creative Commons license icon Creative Commons license icon