Re: Services

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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

  • Next message: Alan Morris\(MSFT\): "Re: Problem with Win32_PrinterDriver"
    Date: Tue, 29 Jun 2004 11:40:39 +0200
    
    

    Infotech wrote:

    > I created a script that changes a services startup type to manual, then
    > starts it and runs a command that uses that service. What I need to do now
    > is stop the service and set it back to disabled. When I specify to do this
    > later in the script it stops the service to quick, and doesn't set it to
    > disable. How can I do this while allowing the command time to run?
    Hi

    After initializing the stop command, you can go into a loop and wait
    for the status to be "stopped" before you continue, here is an example:

    http://groups.google.com/groups?selm=3EA475C8.2BD722C2%40hydro.com

    -- 
    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/community/scriptcenter/default.mspx
    

  • Next message: Alan Morris\(MSFT\): "Re: Problem with Win32_PrinterDriver"

    Relevant Pages

    • Re: Booming or Fuming? Are You Alive? Or Are You Fading Away?!
      ... The single .cmd file which is a Command Library ... consists of ONLY scripting code using ONLY ... every detail of convoluted shell scripting command syntax. ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: Booming or Fuming? Are You Alive? Or Are You Fading Away?!
      ... The single .cmd file which is a Command Library ... consists of ONLY scripting code using ONLY ... every detail of convoluted shell scripting command syntax. ...
      (microsoft.public.windowsxp.perform_maintain)
    • Re: Any other words like right and left, east and west?
      ... For this speech activated scripting stuff, ... program to Dragon NaturallySpeaking called "Dragonfly". ... programs that enables Continuous Command Recognition. ...
      (alt.usage.english)
    • [COMMERCIAL] Ellié Computing Merge 2.1 for Linux
      ... You need to install the command line tools for that SCC. ... An ECMAScript compatible scripting engine is now included in ECMerge. ... Run on a differentiation, it will now export a textual ...
      (comp.os.linux.announce)
    • Re: Download Internet explorer 6--Offline and cmd line?
      ... need to be to use the command prompt for the install which is interesting ... I guess the off line install ... IE6Setup.exe alone can only install IE using a online connection to ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
      (microsoft.public.windowsxp.general)