Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

225
Views
While running a Batch file with node.js on call, there is no log output

I wanted to keep everything in 1 window so I can track my Discord Bot's resources properly. I've noticed that batch's call can be used for this. The node.js file works however the console.log never prints. Is there any other way to do this than throwing call node bot.js -log | set /P "="?

The combinations tried including removal of -log or bringing it back. Start /w node bot.js -log | set /P "=" always worked, but again, trying to keep it all in one screen if that makes sense? I also removed | set /P "=" and it outputs, but if the bot crashes, the batch file will not restart. Is there also something that needs to be different in the Node.js file that needs to print differently or no?

Here is the File's Structure:

title Orophia's Talkative service
:TheIsle
echo (%time%) Orophia launched
cd C:/Hosting
call node bot.js -log | set /P "="
echo (%time%) WARNING: Orophia has crashed or terminated. Restarting in 5 seconds...
timeout /t 5
goto TheIsle

(I dont know how to set the color code to the batch format with code box >.<')

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!