Windchill_8.0系统自动启动

方案一、
1、创建一个批处理文件wtStart.bat(名称可以自取)。wtStart.bat的内容如下:
echo start Windchill
set WT_HOME="c:\ptc\Windchill_8.0"
start c:\ptc\Apache\bin\Apache.exe
call c:\ptc\tomcat5\bin\wttomcat_start.bat
call c:\ptc\Windchill_8.0\bin\infoengine\startnamingservice.bat
start c:\ptc\Windchill_8.0\bin\windchill.exe start
echo Windchill is starting
2、然后,将其存放的路径添加到注册表中(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run 或者
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run)

方案二、
将其做成Wondows系统的服务。以 Windows 服务方式运行 Windchill。
执行下列命令可将 Windchill 配置为以 Windows 服务方式运行。执行命令时
会自动启动该服务。
从 Windchill 外壳程序,输入:
ant -buildfile  \opt\ntservice\WindchillService.xml install
-DserviceName=
其中 < 服务名称> 是引用该服务的唯一名称(例如 WTService)。
现在可以从 Windows 服务实用程序管理(例如,启动和停止) Windchill。
该名称列在您在上述命令中提供的名称(即 < 服务名称>)下面的实用程
序中。

你可能感兴趣的:(C++,c,windows,Microsoft,C#)