Interactive Scheduled Task

D

Dragon

Hi,

I have a scheduled task that is running a batch file. Batch file in-turn
runs a vbscript and another application that interacts with the desktop (It
changes the desktop wallpaper, BGInfo). The problem is that task runs but it
seems like batch file didn't do anything at all. I don't even see the DOS
box opening up. If I run the same batch file myself, everything runs fine.
Task is running with Administrator permissions. Task also returns with 0x0
code.

Any ideas? Is there a way to allow a scheduled task to interact with the
desktop?

Thank you.
 
J

Jason Hall [MSFT]

--------------------
From: "Dragon" <[email protected]>
Subject: Interactive Scheduled Task
Date: Fri, 7 May 2004 13:02:40 -0700
Hi,

I have a scheduled task that is running a batch file. Batch file in-turn
runs a vbscript and another application that interacts with the desktop (It
changes the desktop wallpaper, BGInfo). The problem is that task runs but it
seems like batch file didn't do anything at all. I don't even see the DOS
box opening up. If I run the same batch file myself, everything runs fine.
Task is running with Administrator permissions. Task also returns with 0x0
code.

Any ideas? Is there a way to allow a scheduled task to interact with the
desktop?

Thank you.
-------------------

Yes there is!
What you gotta do is create the scheduled task using the AT command from
the cmd prompt...and use the /interactive switch


--
~~ JASON HALL ~~
~ Performance Support Specialist,
~ Microsoft Enterprise Platforms Support
~ This posting is provided "AS IS" with no warranties, and confers no
rights.
~ Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
~ Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
G

Guest

Try to add some echo lines to the batch to see if it's doing anything
without doing it interactively.
e.g.

date /t >> c:\batch.log
time /t >> c:\\batch.log
 
D

Dragon

Thank you. It worked great.


Jason Hall said:
--------------------
-------------------

Yes there is!
What you gotta do is create the scheduled task using the AT command from
the cmd prompt...and use the /interactive switch


--
~~ JASON HALL ~~
~ Performance Support Specialist,
~ Microsoft Enterprise Platforms Support
~ This posting is provided "AS IS" with no warranties, and confers no
rights.
~ Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
~ Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 

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