NetBox 2.7 使用手册

Install 方法

将当前的程序安装成为服务

语法

Shell.Service.Install
 

注释

在安装之前,必须设定 Service.Name,如果需要显示更加友好的服务名称,需要设定 Service.DisplayName,在 Windows 2000 及以上版本,也可以设定 Service.Description 以提供友好的提示。

示例

下面的代码安装一个服务到系统,服务的名称为“MySrv”,显示名称为“My Service Application”,如果在 Windows 2000 及以上系统,则详细描述设定为“This is my NetBox Service”。

Set service = Shell.Service

service.Name = "MySrv"
service.DisplayName = "My Service Application"
service.Description = "This is my NetBox Service"

service.Install

应用于

Service 对象
版权所有: 2003- 网络盒子