Alternative to “Allow service to interact with desktop”?

前端 未结 4 1740
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 03:22

I have a windows service (C#) installed on a server that launches every 10 minutes an executable file (C#) to process some images from one directory to another. No interacti

4条回答
  •  难免孤独
    2020-12-03 03:42

    If you can, I would recommend rewriting your executables that handle the move to not use an output window. If they are standard, console applications with no output, you can execute them from within a service without requiring "Allow service to interact with desktop". This provides you all of the benefits, without any changes to your service.

提交回复
热议问题