Task Scheduler - task still running

G

Gary

(XP Pro)
I have a simple task that I run through the Task Scheduler. It's a VBS
script that Runs a program, sleeps for a few minutes, then kills that
program and exits. The script appears to have run properly to completion.
Yet the Scheduled Tasks list shows the task as Status:Running.

Why did the task not terminate?

Thanks.

Gary
 
P

Pegasus \(MVP\)

Gary said:
(XP Pro)
I have a simple task that I run through the Task Scheduler. It's a VBS
script that Runs a program, sleeps for a few minutes, then kills that
program and exits. The script appears to have run properly to completion.
Yet the Scheduled Tasks list shows the task as Status:Running.

Why did the task not terminate?

Thanks.

Gary

This is something that only you can answer, by looking
at the output from the scheduled job. Embed it in a batch
file like so:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
wscript c:\tools\YourScript.vbs 1>>c:\test.log 2>c:\test.err
echo Script error level=%ErrorLevel% >> c:\test.log
echo %date% %time% End of task >> c:\test.log

Now examine the two log files and all will become clear!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top