I have automated some extraction/analysis/export tasks of mine with a few JSL scripts and I have been trying to make use of Task Scheduler to run them on a fixed schedule.
I figured it would be easy enough, so I put the following into Task Scheduler. The script itself only takes about 10 seconds to run.
It doesn't seem to matter whether or not I put "//!" at the top of the script, it runs either way.
Add arguments (optional):
It works when I ran the task manually but I can't seem to get it to stop, meaning that subsequent runs never end up running because the first is in a permanent state of:
"The task is currently running (0x41301)".
I tried making a simple batch file to do the same thing to run in Task Scheduler, but it arrives at the same result.
START "" C:\...\jmp.exe "C:\...\myScript.jsl"
Wondering if anyone has had any success with automating JSL scripts and has any pointers?
Go to Solution
Just add the appropriate exit command at the end of your batch and jsl script.
batch it's simply 'exit' and jsl it's 'exit();'
View solution in original post
The scripting index example for quit() is one of my favorites. Save your work first.