vb应用程序做为系统服务
来源:互联网 发布:js中addeventlistener 编辑:程序博客网 时间:2024/06/07 22:36
1.在windows 9x系统下做为服务
运行regedit
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Runserive
新建reg_sz类型的字符串标题随意,值为要做为服务的程序完整路径名包括文件名和扩展名。
2.在windows nt及 windows 2000下做为服务
Installation:
-> Copy SRVANY.EXE to your system and install it as a Windows NT?service, for example:
INSTSRV MyService c:/tools/srvany.exe
-> configure via the Services applet ("Startup..." dialog) of the Control Panel as manual or automatic, as appropriate.
-> set via the Services applet ("Startup..." dialog) of the Control Panel the account for the service. If you need access to the screen & keyboard, you must choose the LocalSystem account and click the "Allow Service to Interact with Desktop", otherwise choose any account and specify the correct logon password. Note that the LocalSystem account doesn't have network access.
Specifying the application to start & its parameters:
Run the Registry Editor (REGEDT32.EXE):
-> under HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MyService: create a 'Parameters' key
-> under the above key, create an 'Application' value of type REG_SZ and specify there the full path of your app executable (including the extension). For example:
Application: REG_SZ: D:/TOOLS/VI.EXE
-> OPTIONAL: under the above key, create an 'AppParameters' value of type REG_SZ and specify the parameters for your app. For Example:
AppParameters: REG_SZ: C:/TMP/FOO
-> OPTIONAL: under the above key, create an 'AppDirectory' value of type REG_SZ and specify the current directory to use for the app, eg:
AppDirectory: REG_SZ: C:/TMP
The case of all above strings is not important.
运行regedit
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Runserive
新建reg_sz类型的字符串标题随意,值为要做为服务的程序完整路径名包括文件名和扩展名。
2.在windows nt及 windows 2000下做为服务
Installation:
-> Copy SRVANY.EXE to your system and install it as a Windows NT?service, for example:
INSTSRV MyService c:/tools/srvany.exe
-> configure via the Services applet ("Startup..." dialog) of the Control Panel as manual or automatic, as appropriate.
-> set via the Services applet ("Startup..." dialog) of the Control Panel the account for the service. If you need access to the screen & keyboard, you must choose the LocalSystem account and click the "Allow Service to Interact with Desktop", otherwise choose any account and specify the correct logon password. Note that the LocalSystem account doesn't have network access.
Specifying the application to start & its parameters:
Run the Registry Editor (REGEDT32.EXE):
-> under HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MyService: create a 'Parameters' key
-> under the above key, create an 'Application' value of type REG_SZ and specify there the full path of your app executable (including the extension). For example:
Application: REG_SZ: D:/TOOLS/VI.EXE
-> OPTIONAL: under the above key, create an 'AppParameters' value of type REG_SZ and specify the parameters for your app. For Example:
AppParameters: REG_SZ: C:/TMP/FOO
-> OPTIONAL: under the above key, create an 'AppDirectory' value of type REG_SZ and specify the current directory to use for the app, eg:
AppDirectory: REG_SZ: C:/TMP
The case of all above strings is not important.
- vb应用程序做为系统服务
- 如何用批处理将一程序做为系统服务每次开机都自启动
- Oracle做为服务自动启动
- 应用程序也能变成“系统服务”
- 系统服务与应用程序相关性的分析
- 系统服务与应用程序相关性的分析
- 将普通应用程序制作成系统服务
- 如何将应用程序注册为系统服务
- 如何将应用程序注册为系统服务
- 如何将应用程序注册为系统服务
- 创建windows应用程序的后台系统服务
- 将普通应用程序制作成系统服务
- 如何将应用程序注册为系统服务
- instsrv将应用程序注册为系统服务
- 如何把应用程序添加到系统服务
- 将java项目做为linux服务
- vb中利用WMI判断系统服务状态
- [VB.NET]VB.net有窗体程序如何以系统服务方式运行?
- Apache的配置
- Wicket与Struts两个框架比较
- Apache中的环形链表
- Linux下的WebLogic安装部署
- tomcat配置学习笔记
- vb应用程序做为系统服务
- 模板模式在Spring 中的应用
- 通过session传递值
- 无效的默认脚本语言
- 关于Robot类例子
- 初学者如何开发出一个高质量的J2EE系统
- 捕捉键盘Message
- 算法每日一题:1、猜数
- 编写 SQL 查询:让我们从基础知识开始