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

  • 相关阅读:
    hdu 2639 Bone Collector II
    文件打包bundle
    iOS UITextField垂直居中
    Mac删除废纸篓中的单一文件和文件夹
    Swift 初见
    关于 Swift
    NSString和NSDate的转换
    iOS开发之iOS7设置状态栏字体颜色
    在当前界面中隐藏状态栏
    适合所有测试人员读的书籍
  • 原文地址:https://www.cnblogs.com/cicada/p/10867914.html
Copyright © 2011-2022 走看看