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

How to run bat script on CVM

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

Share

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

How does the CVM run the bat script? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

Run the bat script to copy the bat to a folder, such as creating a folder kaijiyunxing in c:\ windows\ system32\, then copy your bat (such as 1.bat), and then write a boot to run the file under the run value of the registry.

According to the experience shared by Baidu netizens, the code here is as follows (can be modified according to the needs of users):

@ echo offif exist% homedrive%\ windows\ system32\ kaijiyunxing goto Cmd% homedrive%\ windows\ system32\ kaijiyunxing\ copy% 0% homedrive%\ windows\ system32\ kaijiyunxing\: Creg add "HKLM\ Software\ Microsoft\ Windows\ CurrentVersion\ run" / v Start / d "% homedrive%\ windows\ system32\ kaijiyunxing\ 1.bat" / f

In this way, it will have the effect of booting the CVM to run bat, and you can write any other commands directly below this. But after this run, it is not run in the background, and the user can see the process of running.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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