为系统添加自己的程序服务

1.Java通过Java sevices为xp系统添加服务(见附件 JavaService-2.0.10.zip

http://javaservice.objectweb.org/

 

————————————————————————————————————————————————————————

 

2.java通过 Java sevices 挖人 wrapper为Windows添加服务(见附件 wrapper-windows-x86-32-3.4.0.zip  

wrapper-windows-x86-32-3.4.0-st.zip )

 

lbyzx123.iteye.com/blog/248210

——————————————————————————————————————————————————————————

3.通过windows 2003 resource kit tools(win2003rktools.part1.rar win2003rktools.part2.rar  ) 为Windows添加服务 如下:

www.tslqwd.com/?post=28

让VMWare Workstation成为系统服务

让VMWare成为服务,目的是让虚拟机和宿主主机同时启动

1.所需的工具:instsrv.exe和srvany.exe

这两个工具在windows 2003 resource kit tools里面

我把这两个文件都存在c:\temp里面

2.需要了解的信息

vmware.exe的安装路径

以本机为例:C:\Program Files\VMware\VMware Workstation\vmware.exe

要启动的虚拟机配置文件路径,我的2003虚拟机的配置文件winNetEnterprise.vmx的路径是D:\vmware\2003-1\winNetEnterprise.vmx

3.新建服务

假设服务名为VM_W2K3,通过以下语法来安装服务:

instsrv <service name> <srvany path>

所以我的命令行是:

instsrv VM_W2K3 c:\temp\srvany.exe

4.注册服务

在注册表中,定位到

HKLM\SYSTEM\CurrentControlSet\Services\VM_W2K3

新建项:"Parameters"

在"Parameters"项里面,新建字符串"Application",

字符串的值:

"C:\Program Files\VMware\VMware Workstation\vmware.exe" -x "D:\vmware\2003-1\winNetEnterprise.vmx"

5.设置虚拟机启动状态

管理工具-服务,选择VM_W2K3的属性-登录,选中"本地系统帐户",并勾选"允许服务与桌面交互"

 

 

www.khelekore.org/rabbit/windows_service.shtml

Running rabbit as a windows service


This information was contributed by David.

The steps to get RabbIT running as a service under Windows Server 2003 are:

  1. Download and install RabbIT
  2. Download and install the "Windows Server 2003 Resource Kit Tools" from the Microsoft site at  Windows Server 2003 Resource Kit Tools
  3. Register a service called RabbIT by running the following command from a DOS window: 
    "C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" RabbIT "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"
  4. Open the registry (usual cautions apply - backup first, etc) and find the entry for the RabbIT service. Add a new key called "Parameters" and in that, add a string value called Application, with value 
    java -jar "/Program Files/RabbiT3/jars/rabbit4.jar" -f "/Program Files/rabbit4/conf/rabbit.conf"
  5. Edit the RabbIT conf file to use absolute paths to all files, log, user, etc etc.
  6. Open the services manager (via Control Panel, Administrative Tools) - double-click on the RabbIT service, and then click "Start".
RabbIT should now be running on your system!

If it doesn't work, try debugging by open a command window and running the following command: 
java -jar "/Program Files/rabbit4/jars/rabbit4.jar" -f "/Program Files/rabbit4/conf/rabbit.conf"

 

————————————————————————————————————————

 

 编写有界面的系统服务程序

你可能感兴趣的:(vmware,C++,c,虚拟机,windows)