Windows system to quickly set the automatic start of a program, you can use the following methods:

First: Set the boot option

C:\Users\ThinkPad\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Startup, press Enter to quickly open the startup folder.

2. Copy the shortcut of the program to be started upon startup to this folder.

3. Open task Manager – Start to view the boot option.

This is set up so that the next time the computer boots up, the program will start automatically.

Second: use scheduled tasks to start automatically

1. Create a text file debugstart. TXT and write the following content:

tasklist|find /i "authSender.exe" && echo started || start"" "D: \ Debug \ authSender exe ".Copy the code

This statement cannot wrap, authSender. Exe is the program name, “D: \ Debug \ authSender exe” is the program path, tasklist | find/I “authSender. Exe” is to determine whether a process exists, whether the program is open, If not open will start the program, and then change the suffix.txt to.bat, double-click to start the program. (You can comment a statement with :: before each statement.), this method can also start different programs in batches by restarting one line in the file and writing the corresponding statement of the second program to start in the same format.

2. Go to the task scheduler window and create a task.

Next, select the triggers TAB, select New, and in the first column of start task, select login time (administrator permission is required to start task) or start time (administrator permission is required to start task), and click OK. Since our BAT script makes judgments, there is no need to worry about the program being started more than once.

In the operation TAB, select New, and select the start program option, and in the program and script, select the. Bat program you just wrote, click OK, and then click OK (create task interface OK).

Close the page, you can start the program automatically.

Third: the group policy setting script starts with the server

1. Start -> Run ->gpedit. MSC -> Computer Configuration ->Windows Settings -> Scripts (Startup/Shutdown). Including Win10 there are many versions, including home edition is the default group policy function is not available, if you need to give Win10 home edition adding the function of the group policy, you can refer to blog.csdn.net/lwpkjio/art…

2. Add the startup script and click OK.

That will do.

Fourth: add services to run automatically

1. Start — run — CMD — Press Enter, and enter the following command in the displayed dialog box:

sc create Debug binPath= D:\Debug\authSender.exe start= auto
Copy the code

Debug is the name of the service to be created. Deleting the created service is also easy with the following command: sc delete ServiceName

2. Open the Control Panel – Administrative Tools – Services (or start – Run -services. MSC – confirm) open the Service Manager and see the service you created is already in it. At this point, the service run is created.