"Rich" <richjone@xxxxxx> wrote in message
news:1D3543F0-45E9-497F-BF93-A4E68B603D21@xxxxxxIf you want your scripts to be robust then you must invoke them explicitly
>I have a vbscript that when I launch it manually it runs and closes in
> 5 minutes. I created a new Scheduled Task on my server, having it just
> the .vbs file (the vbs path\filename is the only thing in the Run box),
> it it still running after 10 minutes and I can't tell why so I cancelled
> Is there a better way to setup the scheduled task so it will stop
> (whether it finished and didn't close or whether it was still running
> 10 minutes which it shouldn't have been).
instead of relying on some associations that may or may not work. Instead of
you should run
cscript.exe //nologo c:\Scripts\MyScript.vbs
This will probably solve your problem. If it doesn't, log on under the same
account as the one used for the scheduled task, then launch that task in the
Task Scheduler and watch what happens.