zoukankan      html  css  js  c++  java
  • 【Vegas原创】我写的一个安装windowsService的BAT

    要点:  当到达 长地址时, 需要输入: 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






    喜欢请赞赏一下啦^_^
  • 相关阅读:
    Struts2
    Struts2
    学习python的第九天
    学习python的第八天--作业
    学习python的第七天--作业
    学习python第六天 --作业
    学习python的第六天---1(理论)
    学习python第五天
    学习python第四天
    学习python第三天
  • 原文地址:https://www.cnblogs.com/amadeuslee/p/3744675.html
Copyright © 2011-2022 走看看