Home > System Tutorial > Windows Series > Four ways to start Windows services or programs automatically after booting

Four ways to start Windows services or programs automatically after booting

WBOY
Release: 2024-06-10 16:31:32
Original
898 people have browsed it
Directory
  • Method 1, self-starting folder
  • Method 2: Add task schedule method
  • Method 3: Add local group policy method

Method 1, self-starting folder


Win + R shortcut key to open the run window;
Input shell:Startup, click " OK";

Four ways to start Windows services or programs automatically after booting

is visible, and the self-startup file is saved in the following path:

C:\User\[your Username]\AppData\Roaming\Microsoft\Windows\"Start" Menu\Programs\Startup

(1) Script type 1: Put the shortcut of the original script (script type)

Four ways to start Windows services or programs automatically after booting

Put the shortcut of the script that starts the service path here. Remember, it must be the shortcut of the original script, not the original script. Or you can write a self-starting script yourself, and the path points to the original service location.

(2) Script type 2: Write your own script, point to the original service path (service or software type) Create a new txt text document in the folder, edit and write the content

D:cd \weixinstart wechat.exeE:cd \goolestart Chrome.exe www.baidu #后面为要打开的网址exit
Copy after login

The file suffix is ​​changed to .bat, and the contents of the script will be automatically executed after booting.

Method 2: Add task scheduling method

(1) Open Computer Management

Four ways to start Windows services or programs automatically after booting

(2) Create Task, add the task name and description (fill in as needed)

Four ways to start Windows services or programs automatically after booting

(3) Create a new trigger task, when the computer starts.

Four ways to start Windows services or programs automatically after booting

Four ways to start Windows services or programs automatically after booting

(4) Select the new operation and load the script of the startup program (the script in the path corresponding to the service).

Four ways to start Windows services or programs automatically after booting

Four ways to start Windows services or programs automatically after booting

##Click [OK] to join the boot auto-start task, enter the user name and password to confirm

Four ways to start Windows services or programs automatically after booting

(5) After the scheduled task is set up, this task will be automatically loaded every time the computer is turned on.

Four ways to start Windows services or programs automatically after booting

Method 3: Add local group policy method

Win + R shortcut key to open the run window;

Enter gpedit. msc, click "OK";

Four ways to start Windows services or programs automatically after booting

Start->Run->gpedit.msc->Computer Configuration->Windows Settings->Script ( startup/shutdown).

3. Select Start, Properties, Add, Browse (open the location of the script), and click OK.

Four ways to start Windows services or programs automatically after booting

that's it. Method 4: Add the service to run automatically (the command line needs to be started in administrator mode)

Win + R shortcut key to open the run window;

Enter cmd and click "OK";

Four ways to start Windows services or programs automatically after booting

3. Start---Run---cmd---press Enter, enter the following command in the pop-up form:

sc create ServiceTest binPath= D:\WorkPlace\Compiled and packaged version file\start.bat start= auto

where ServiceTest is the name of the service to be created. It is also very simple to delete the created service. Just use the following command:

sc delete ServiceTest

Four ways to start Windows services or programs automatically after booting

4. Open the control panel ---Management Tools---Services (or Start---Run---services.msc---Confirm) Open the service manager and see that the service you created is already in it. At this point, the service operation has been created. .

The above is the detailed content of Four ways to start Windows services or programs automatically after booting. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template