Home > Article > System Tutorial > Four ways to start Windows services or programs automatically after booting
Win + R shortcut key to open the run window;
Input shell:Startup, click " OK";
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)
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
The file suffix is changed to .bat, and the contents of the script will be automatically executed after booting.
(1) Open Computer Management
(2) Create Task, add the task name and description (fill in as needed)
(3) Create a new trigger task, when the computer starts.
(4) Select the new operation and load the script of the startup program (the script in the path corresponding to the service).
Enter gpedit. msc, click "OK";
Enter cmd and click "OK";
sc create ServiceTest binPath= D:\WorkPlace\Compiled and packaged version file\start.bat start= autowhere 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
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!