將exe程序建立windows服務windows
sc create TestService binpath= "c:/in estapp.exe" displayname= "TestService" depend= Tcpip start= auto app
將windows服務刪除ip
sc delete TestService pip