且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中运行Windows服务应用程序

更新时间:2022-02-20 03:09:19

Windows服务没有UI并且正常运行系统帐户,因此您无法启动其他需要UI的应用程序,如记事本等。



重新考虑您想要做什么并使用限制。
Windows services don't have a UI and run (normally) on a system account, so you can't start other applications that require UI like notepad etc.

Rethink what you want to do and work with the restrictions.