Reputation: 1261
I have two batch files which will start my nginx and node server ( using node forever) separately.
I want these scripts to restart every time the whole system restarts. Now my server is a windows VM(windows server 2016) which has multiple users.
I tried this but it creates a startup folder under my user, so I am guessing it will restart each time my user logs in and moreover my user folder will be deprecated.
I DO NOT want to start the scripts each time a user logs in.
Only when the system/VM restarts. How can I ensure that this happens?
Upvotes: 1
Views: 2535
Reputation: 79
You can try adding the shortcut in Windows startup. Take a look at this link.
Upvotes: 1