Windows Home-made background running process, exe start-up service

Source: Internet
Author: User


1, production background running program

First, create a bat script, App.bat, to write the Run command, such as: node App.js >log.log

Then download a tool Bat_to_exe_converterto convert bat to exe, convert bat to EXE, as follows


After generating exe file, mouse click Start App.exe, open Task Manager, there will be App.exe process, indicating success. Such as:



2, the production of automatic start-up service

The power-on-boot principle is to register the EXE file with the boot service entry via the command.

SC create creates a Windows system service
Describes the SC is a command-line program for communicating with the Service Control Manager and the service.

command line, it is important to note that there is a space between the equals sign and the value, otherwise it will be an error. Such as:



Windows Home-made background running process, exe start-up service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.