Re: win2K task scheduler - at system startup

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 08/08/04


Date: Sun, 08 Aug 2004 15:50:25 +0200

Ooi Wee Chuan wrote:

> Hi, I've scheduled a console app to run at system startup (not requiring any
> logon). However, it seems like it has problems connecting to my local
> database server which runs as a service (Interbase 6.0.2).
>
> I don't have any problem if I schedule it to run at logon/any other options.
>
> I don't see the MSTask popup window as well (which I always see) if I
> schedule at system startup.
>
> Why the differerences and how can I make my app to work completely with
> system startup option? Anything special to look out for with this option??
Hi

Maybe the database service haven't had time to start up yet when your
scheduked task kiks in. Try to e.g. launch a script that adds a
delay first before launching the console app. Or better, let the
script check the service status in a loop to the service status is
reported as running.

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: Scheduling task
    ... Win32_scheduledJob uses NetScheduleJob Win32 APIs and not the later Task ... >I dont see how ith this I can schedule for every 3rd Monday. ... >> Use of included script samples are subject to the terms specified at ... >>> In looking at my scripting options to have the AT API call a vbscript ...
    (microsoft.public.windows.server.scripting)
  • Re: And Yes, Folks, Come Fall Itll Only Be a 2-Network Universe
    ... scripting on vertually every program, except live breaking news and live ... are certainly scripted, but are not original scripted series, for me. ... On the 1964 fall schedule there was only one 'reality-type' show (Candid ...
    (rec.arts.tv)
  • Re: Defrag
    ... to schedule a defrag of a computer using group policy and Windows 2003 AD? ... an account that have local administrator rights. ... e.g. check for the .job file in the folder %windir%\Tasks\ ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
    (microsoft.public.windowsxp.general)
  • Re: scripting a periodic iis redirect
    ... How are you managing the schedule? ... we have patrons using our digital library services from around ... I am a relative newbie to scripting but am motivated by the few ... >courtesy to the community by helping other scripting newbies down the road. ...
    (microsoft.public.inetserver.iis)
  • win2K task scheduler - at system startup
    ... I've scheduled a console app to run at system startup (not requiring any ... it seems like it has problems connecting to my local ... I don't have any problem if I schedule it to run at logon/any other options. ...
    (microsoft.public.win2000.general)