Home >System Tutorial >Windows Series >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).
##Click [OK] to join the boot auto-start task, enter the user name and password to confirm(5) After the scheduled task is set up, this task will be automatically loaded every time the computer is turned on. Method 3: Add local group policy methodWin + R shortcut key to open the run window;
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 ServiceTest4. 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!