【Vegas原创】我写的一个安装windowsService的BAT
2014-05-22 15:40
423 查看
要点: 当到达 长地址时, 需要输入: CD/D
@echo off
echo **************************************
echo * *
echo * Welcome To abcdef *
echo * *
echo **************************************
echo hi:
echo %username% :) 我是 Vegas Lee, 很高兴为您服务.
echo --------------------------------------------------------------
echo - ↙您正在安装 **WindowsService
-
echo --------------------------------------------------------------
pause
set Addr=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
cd/d %Addr%
installutil D:\FlowERWS\AUOFlowERWindowsService.exe
IF ERRORLEVEL 255 GOTO Label255
IF ERRORLEVEL 254 GOTO Label254
IF ERRORLEVEL 1 GOTO Label1
GOTO Label0
:Label255
echo commands to be executed at errorlevel 255
GOTO End
:Label1
echo commands to be executed at errorlevel 1
GOTO End
:Label0
echo --------------------------------------------------------------
echo - 恭喜!您已成功安装 **WindowsService! -
echo --------------------------------------------------------------
pause
:End
@echo off
echo **************************************
echo * *
echo * Welcome To abcdef *
echo * *
echo **************************************
echo hi:
echo %username% :) 我是 Vegas Lee, 很高兴为您服务.
echo --------------------------------------------------------------
echo - ↙您正在安装 **WindowsService
-
echo --------------------------------------------------------------
pause
set Addr=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
cd/d %Addr%
installutil D:\FlowERWS\AUOFlowERWindowsService.exe
IF ERRORLEVEL 255 GOTO Label255
IF ERRORLEVEL 254 GOTO Label254
IF ERRORLEVEL 1 GOTO Label1
GOTO Label0
:Label255
echo commands to be executed at errorlevel 255
GOTO End
:Label1
echo commands to be executed at errorlevel 1
GOTO End
:Label0
echo --------------------------------------------------------------
echo - 恭喜!您已成功安装 **WindowsService! -
echo --------------------------------------------------------------
pause
:End
相关文章推荐
- 【Vegas原创】我写的一个安装windowsService的BAT
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service(downmoon原创)
- 制作一个可安装、可启动、可停止、可卸载的Windows service(downmoon原创)
- 【Vegas原创】Windows 2003下CACTI的安装及配置
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows
- 【Vegas原创】Windows service使用初探:定时发送Mail
- 【Vegas原创】Windows service使用初探:定时发送Mail
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- Windows下使用service.bat安装tomcat服务, 启动停止tomcat服务
- 【Vegas原创】Windows service使用初探:定时发送Mail
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows service
- 【Vegas原创】a href="#" onclick=""的一个小技巧
- Windows Service的安装
- Subversion安装成windows的service
- 在 SQL Server 2000 中对链接服务器运行分布式事务在您安装 Windows Server 2003 或 Windows XP Service Pack 2 时可能收到 7391 错误信息