The task is supposed to run a .js file every minute.
To make this happen, I made the task run every day at 00:00 and repeat every 1 minutes.
However, the task now allways has Status of Running without actually doing anything and the Last Run Result is 0x41301 (cannot run because it is allready running).
I tried making a trigger for for each minute (for a few consequtive minutes) and this works. The script was being run every minute (for those minutes), but I cannot make a trigger for each minute of the day...
When I use repetition the process wscript.exe is constantly running, and this is the problem - when I have a trigger for each minute then the process ends itself after each run.
But when I use repetition, it never ends the process and is therefore not able to run the script again. (Hence the error: 0x41301)
I thought I'd be able to solve this by selecting for If the task is already running, then the follow rule applies: the option Stop the existing instance - however, this does not apply to each repetition, it only applies to when the task starts each day - I think; after all this option does not work.
The .js script does not run at all (not even once) when I use repetition; if it did, then I'd make it kill the process of wscript.exe after it was done.
So how do I fix this?
EDIT:
Having tried making a .vbs script and a batch program, to find out whether it's the task or the script that is in the wrong I've discovered that nothing works - my conclusion is therefore that the error lies with the task itself.
I even tried starting Internet Explorer directely from the task and even that did not work.
That is to say: everything works, but not while repetition is active <- any kind of repetition, I've tried a bunch of possible combinations of repetition and other settings, but nothing works.
Is there a secret rule, hidden from the public, that states that whenever repetition is activated, the script has to be written backwards in greek? Because I've tried that and it didn't work!