Task Scheduler

G

Guest

Hi. I have VB 6.0 app with a GUI that is scheduled to run everyday at 3 pm
but it hangs up with the Win 2K Scheduled Tasks Window saying running with No
GUI showing up. I look at the Task Manager and there's CPU time of 0.

On Scheduled Tasks service the "interact with desktop" is checked. And I've
given it a Domain user and password to run under Task Scheduler.

Could you help please I researched and read so much but no fixes. I'm in a
crunch.

Thanks,
 
P

Pegasus \(MVP\)

Ory said:
Hi. I have VB 6.0 app with a GUI that is scheduled to run everyday at 3 pm
but it hangs up with the Win 2K Scheduled Tasks Window saying running with No
GUI showing up. I look at the Task Manager and there's CPU time of 0.

On Scheduled Tasks service the "interact with desktop" is checked. And I've
given it a Domain user and password to run under Task Scheduler.

Could you help please I researched and read so much but no fixes. I'm in a
crunch.

Thanks,

Your task probably hangs because it is waiting for some
user input. Modify your VB application so that it writes a
few telltales to a log file. Make sure to close the log file
after each write!

To make a scheduled task visible to a foreground session
you must run it under the same account as the foreground
session. Furthermore, the foreground session must start
first.
 
G

Guest

Thanks,

The program was meant to be ran unattanded. It runs fine with GUI showing up
in XP and Win 2K under my account?? It's now made to run under the
Applications account. Also the Applications account is the user on the
session which is connected to the server all the time (we do not log out).

Looking forward for your reply.
 
P

Pegasus \(MVP\)

- What's the result when you write telltales to a log file?
- What do you see when you run the task under the
foreground logon account?
 
G

Guest

- What's the result when you write telltales to a log file?
Writing telltales to a log file works.
- What do you see when you run the task under the
foreground logon account?
Again no GUI Form (should) shows up. But functionality seems to work. It
seems to me the Task Scheduler in this computer doesn't want to display GUI
from any scheduled application.

Thanks,
 
P

Pegasus \(MVP\)

I just ran this little test:
1. I logged on to my PC as Pegasus.
2. I scheduled notepad.exe to run under the Pegasus account.
3. I waited until the task should execute.
4. Notepad.exe appeared on my desktop.

I recommend you run the same test.
 
P

Pegasus \(MVP\)

Well, I'm stumped. Here is what I would do in this situation:

1. Schedule this batch file to run, then check the log files:
@echo off
echo %date% %time% > c:\test.log
%SystemRoot%\system32\notepad.exe 1>>c:\test.log 2>c:\test.err

2. Perform the above test on a different PC.

3. Re-install IE6. The Task Scheduler comes bundled with it.
 

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