As of now I have a .bat
file in the Startup folder which runs the command
START cmd.exe /k "cd C:\restAPI & node server.js"
This works perfectly but, because I am running this on Windows Server 2012 I was wondering if there is a better way to do this. Preferably run it in a way where the user could not accidentally close the cmd window.