Windows automatically runs in the background through Vbs+bat Nodejs application_vbs

Source: Internet
Author: User
Tags git client

Environment: window8.1

The principle is to run the bat file through the VBS windowless background

1. Create a new. bat file. Content such as:

@ECHO on  
F: 
cd \repositories\yyper 
start/b Nodemon index.js-f  

2, create a new. vbs file. Content such as:

Set ws = CreateObject ("Wscript.Shell")  

Double-click the. vbs file. I started the Nodejs app test by this method, multiple double click, will start several nodejs process. But manually through the GIT client to boot, if it has been launched once, you will start again because the port is accounted for, and can not start, it is strange. Who can tell me why, please leave a message

Ps:win8 system to add the boot from the Software method, (online search, no test)
Copy the shortcut of the software that needs to be set to boot up to any path below, OK
The boot from boot path is as follows:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup 

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.