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