Windows 10 execute a .js file using Task Scheduler

  • Thread starter Thread starter Alexandra Burlacu
  • Start date Start date
A

Alexandra Burlacu

Hello.I have a JavaScript file that I execute it with node using cmd or VS Code.I have tried to schedule a task using:Action: Start a programProgram/ Script: "C:\Users\AppData\Local\Programs\Microsoft VS Code\Code.exe"Arguments: -l - i -c "C:\Users\desktop\folder_containing_the_file; node writeToFile.js"When I run it, it opens my VS code, but is not executing the file.What should I do to be able to run the script?Thank you.

Continue reading...
 
Back
Top