且构网

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

在 Windows Server 启动时自动运行程序

更新时间:2023-01-30 12:11:46

你应该制作一个 Windows 服务;这是唯一可靠的方法.
否则,您会遇到问题,例如,用户注销.

You should make a Windows Service; it's the only reliable way to do this.
Otherwise, you will run into problems if, for example, the user logs off.

如果你想要 UI,你可以制作一个单独的 GUI 来与服务通信(可能使用 WCF).

If you want UI, you can make a separate GUI that communicates with the service (probably using WCF).