Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Several methods of booting and self-starting bat Program under windows

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The following two methods can be performed by personal testing.

1. Write VBS script

Create a new script script.vbs with the following content:

Set ws=WScript.CreateObject ("WScript.Shell")

Ws.Run "C:\ Users\ Administrator\ Desktop\ aa.bat / start", the storage path of 0 / / bat

After writing and saving, click start-"all programs -" start, right-click to open, and put the script into it to boot and start the bat script.

2. Modify the registry

Click start-"run -" regedit to open the registry, as shown in the following figure

Find it in turn

HKEY_LOCAL_MACHINE-"SOFTWARE-" Mirosoft-"Windows -" Run

Right-click in the right window to create a string value named Run, and double-click the path where the bat script is located to boot and run the bat program, as shown in the following figure:

The following methods are also said on the Internet that can be implemented, the test area can not be used, write out Yu Jun sharing here, maybe there is one suitable for you?

1. Put the bat script directly into the start-"all programs -" startup.

2. Configure startup policy

Start running-"enter gqedit.msc to run as shown in the following figure

Double-click computer configuration-"windwos configuration -" script launch-"start"

Click add-"Pop up the corresponding dialog box and browse to save the path where your bat script is located to achieve boot self-startup."

3. Click Control Panel-"Mini Icon -" manage-"Task Scheduler"

Just set the bat script you want to start and the startup time.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report