我是靠谱客的博主 活泼酒窝,最近开发中收集的这篇文章主要介绍vb应用程序做为系统服务,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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.

最后

以上就是活泼酒窝为你收集整理的vb应用程序做为系统服务的全部内容,希望文章能够帮你解决vb应用程序做为系统服务所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(62)

评论列表共有 0 条评论

立即
投稿
返回
顶部