zoukankan      html  css  js  c++  java
  • install windows service

    install windows serivce e.g

    @echo off
    echo ----------------------------------------------------------
    echo Service Installation...

    C:WindowsMicrosoft.NETFramework64v4.0.30319InstallUtil.exe D:ProjectWindowsService.exe

    echo Service installation completed

    pause

    save file name: install.bat

    uninstall windows service e.g

    @echo off
    echo ----------------------------------------------------------
    echo Start Stopping Services...

    net stop UpdateUserDataToRedisService

    echo Stop service completion.
    pause

    echo ----------------------------------------------------------

    echo Unloading service in progress...

    C:WindowsMicrosoft.NETFramework64v4.0.30319InstallUtil.exe D:ProjectWindowsService.exe /u

    echo Unloading Service Completion.
    echo ----------------------------------------------------------
    pause

    save file name:unInstall.bat

    start service

    @echo off
    echo ----------------------------------------------------------

    echo Start the service...

    net start UpdateUserDataToRedisService

    echo Start service completion

    echo ----------------------------------------------------------
    pause

    save file name: startservice.bat

  • 相关阅读:
    大道至简第二篇阅读笔记
    大道至简第一篇阅读笔记
    冲刺第十天
    冲刺第九天
    冲刺第八天
    冲刺第七天
    用java构造一个带层次的文件目录遍历器
    用java进行简单的万年历编写
    delphi 图像处理 图像左旋右旋
    delphi 图像处理 图像放大缩小
  • 原文地址:https://www.cnblogs.com/cicada/p/10867914.html
Copyright © 2011-2022 走看看