I try to run this doit.js Javascript on Task Scheduler on windows 7
When I execute manually, I meant without using task Scheduler, This script is working.
When I execute manually/click. there are windows said "Windows Script Host" and also appreared the icon of windows script Host in the bottom of screen.
Therefore, I assume that cscript.exe or wscript.exe
Right Click the task, Click Properties---> Click "Action" ---->Click "Edit"
I browse in "Program/Script"
C:\\Windows\\System32\\cscript.exe
or
C:\\Windows\\System32\\wscript.exe
I tried both and
I Copied and Pasted in "Add argument(optional)"
C:\\Users\\km\\Desktop\\AzureProject\\doit.js
but it is not working, How can I set in Task Scheduler to run this script?
SO I found out
I added
C:\\Windows\\System32\\cscript.exe on "Program/Script"
C:\\Users\\km\\Desktop\\AzureProject\\doit.js on "Add argument(optional)"
C:\\Users\\km\\Desktop\\AzureProject\\ on "Start in(optional)"
I hope this question help someone
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.