Create a combo command line / Windows service app

前端 未结 4 595
说谎
说谎 2021-02-02 16:19

What\'s the best way in C# to set up a utility app that can be run from the command line and produce some output (or write to a file), but that could be run as a Windows service

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 16:55

    A Windows Service is quite different from a normal Windows program; you're better off not trying to do two things at once.

    Have you considered making it a scheduled task instead?

    windows service vs scheduled task

提交回复
热议问题