Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Windows Service

  1. #1
    Join Date
    Feb 2009
    Location
    Perth, Western Australia
    Posts
    779

    Default Windows Service

    Hi Nils/All

    We are currently looking into running some timed background tasks using DataFlex. So we are weighing up between a windows service and a scheduled task. I know Nils has a windows service manager program.

    but.. a general question to start, what are you guys using? What are the advantages and disadvantages?
    Cheers,

    Thomas Murphy
    Triumph Business Systems Pty Ltd
    www.triumph.com.au

  2. #2
    Join Date
    Feb 2009
    Posts
    4,552

    Default Re: Windows Service

    Hi Tom

    We use a windows scheduled task.

    It's just a bit more controllable/accessible than something buried away on a server hardly anyone has permissions to

    Just be aware you don't have access to mapped drives and are not able to use COM automation of Office if you are running an unattended task
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

  3. #3
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    3,499

    Default Re: Windows Service

    We too use a scheduled task at most of our customers. It runs a task every hour that calculates statistics.

    The 2 biggest issues are:

    1. The IT people install a new server and forget to set up the task on the new server
    2. The User Account attached to the Task is disabled or the password gets changed

    Both are easy to overcome but as Focus said, network paths are inaccessible. For that reason we always install it on the data server.

  4. #4
    Join Date
    Feb 2009
    Posts
    4,552

    Default Re: Windows Service

    network paths are inaccessible
    You can use UNC paths just not mapped drives
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

  5. #5
    Join Date
    Feb 2009
    Location
    Somewhere in Vermont, USA - unless I'm not
    Posts
    9,105

    Default Re: Windows Service

    I've used both.

    I like a scheduled task & have used 'em for years, but a client I'm working with prefers services - so I've used Nils nice setup.
    Garret

    "If you think you are too small to make a difference, try sleeping with a mosquito"

    -Dalai Lama




  6. #6
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    3,499

    Default Re: Windows Service

    True.

  7. #7
    Join Date
    Feb 2009
    Location
    Peoria, IL
    Posts
    5,284

    Default Re: Windows Service

    Use Nils Windows service with great success.
    Chuck Atkinson

    All generalizations are false, including this one - Mark Twain

  8. #8
    Join Date
    Feb 2009
    Location
    Perth, Western Australia
    Posts
    779

    Default Re: Windows Service

    Thanks for the advice guys, we're going to look at the task scheduler. As it's not an on going process and will only run a couple of times a day/night.

    Cheers
    Tom

    Sent from my SM-G930F using Tapatalk
    Cheers,

    Thomas Murphy
    Triumph Business Systems Pty Ltd
    www.triumph.com.au

  9. #9
    Join Date
    Feb 2009
    Location
    Rotterdam, Holland
    Posts
    1,916

    Default Re: Windows Service

    We've been using NSSM and that works well:
    https://nssm.cc/

    Regards,

    Pieter

  10. #10
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    2,848

    Default Re: Windows Service

    The NSSM is what my Windows Services project, that Tom mentioned, is using in the background.

    And one thing that stands out about it is that it automatically restarts the service if it for some reason crashes or ends prematurely.
    Last edited by Nils G. Svedmyr; 19-Feb-2019 at 04:31 AM. Reason: Additional info added
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "Humor is reason gone mad"
    Groucho Marx

Posting Permissions

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