Re: How to create a "delay" service?

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Lars Norman Søndergaard" wrote:
> What about creating a vbscript that pauses and then use srvany to run the
> script as a service?

"Hank Arnold" wrote:
> I created a batch file that "sleeps" for the specified number of seconds

Thanks for the suggestions. However I have tried this sort of thing (even
said so in the post):

What happens is that there is little to no delay between the writes.
It would seem that the "Delay" service starts a command then
signals to the next service it can start. This makes sense as the
service
could be doing anything, in this case it is just running SLEEP. As far
as
service control is concerned the service is started, move on the next
one.

This is what would happen with a VBscript and any other program that
performs a SLEEP type function. Unless I'm missing something fundamental all
this does is create a service that starts, signals the next service it can
start, then stops after the number of seconds specified in the sleep.

What I need is a service that won't START for number of seconds. Because
running any program, like a batch job, vbscript, etc successfully starts
straight away, signally the next service it can start.

Any other suggestions?
.



Relevant Pages

  • Re: How to create a "delay" service?
    ... >> What about creating a vbscript that pauses and then use srvany to run the ... > signals to the next service it can start. ... in this case it is just running SLEEP. ...
    (microsoft.public.windows.server.setup)
  • Re: System sleep
    ... > is not so CPU intensive to perform a sleep. ... > to finish and moves the file before PGP can decrypt it... ... > VBScript is not my primary language, I use VBScript exclusively in DTS ...
    (microsoft.public.scripting.vbscript)
  • HowTo get Sleep and/or Refresh.
    ... I'm trying to make a VBScript running in a HTML page sleep so GUI can ... into a ".vbs" file and run it, the WScript exists, and the Sleep works. ... interval Sub to handle the timing and thus got GUI to refresh. ...
    (microsoft.public.scripting.vbscript)
  • Re: sleep or doEvents
    ... Steven will sleep give time to other process's, im running a web server on ... same system as vbscripts downloading some 1 meg xml files, ... > VBScript aswell, tend to confuse myself and try and use other stuff I ... >> access to cpu cycles. ...
    (microsoft.public.scripting.vbscript)
  • Re: Premature wakeup of time.sleep()
    ... >> The actual suspension time may be less than that requested because ... What signals would that be? ... KeyboardInterrupt exception - and which does interrupt the sleep() ... which is a granularity of 10ms. ...
    (comp.lang.python)