在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Building Dynamic Service in C# This is a service that will run an application, and can be used over an over without hard coding any information The installer and gleans service information from the command line so one does not have to hard code the service name, account and password. It also stores a command in the Registry that will be retrieved and run as a process. The name of the Service itself is append to the ImagePath of the service in order to be passed as a command line argument so the service does not need to know its own name (This part of the Service framework need to be addressed by Microsoft).
using System;
using System.ServiceProcess; using System.Collections; using System.ComponentModel; using System.Configuration; using System.Data; using System.Web.Services; using System.Diagnostics; using System.IO; using System.Configuration.Install;
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论