Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: Service.Query

  1. #1
    Join Date
    Jan 2005
    Location
    Howell, MI
    Posts
    22

    Service.Query

    Hi All, unless I am missing another command the "Service.Query" is used to make sure a program is not running before trying to copy a new version into the same folder or on top of running .exe file.

    I seem to not be able to get it work.

    no quotes in real names

    Windows title bar name = "DTS TDAS"
    Windows process running name = "dts_tdas.exe"
    Installed as = "TDAS CONTROL" for all shortcuts and for Windows uninstall

    I have tried
    sPRORUN = Service.Query("DTS TDAS", "")
    sPRORUN = Service.Query("DTS TDAS", "DTS TDAS")
    sPRORUN = Service.Query("DTS TDAS", "dts_tdas.exe")

    I think a few more combos. what format do I use to return that it is running?

    --Debug.Print(""..sPRORUN.."\n"); always returns a "0"

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Service actions are specifically for Windows services. To see if a process (or program) is running use Window.EnumerateProcesses. Do a search for "Window.EnumerateProcesses" on the forums here and you should come up with a bunch of results with how to do this sort of thing.

  3. #3
    Join Date
    Jan 2005
    Location
    Howell, MI
    Posts
    22
    Thanks, that was the hint I needed. Works Great.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts