I’m using a batch file to schedule a .js bot. The bot is exiting his process after he is done with his job but using the batch cmd window as log output.
I’m using process.exit(1)
to exit his process.
My problem now is that the cmd window wont close automatically but needs an input to do so:
Press Enter or Esc to close console...
batch script:
cd "[path]" node bot.js exit
Advertisement
Answer
Problem solved!
Thanks to Anon Coward for his/her advice, the settings of ConEmu screwed me over.