--------------------------------------install----------------------------------------------------
sc stop GAppProxy
sc delete GAppProxy
sc create GAppProxy binPath= "%~dp0srvany.exe" start= auto
sc description GAppProxy "HTTP 代理服务 - GAppProxy 为您效劳。"
reg add HKLM\SYSTEM\CurrentControlSet\Services\GAppProxy\Parameters /v Application /d "%~dp0..\proxy.exe" /f
reg add HKLM\SYSTEM\CurrentControlSet\Services\GAppProxy\Parameters /v AppDirectory /d "%~dp0..\" /f
sc start GAppProxy
::@echo.
::@echo 安装已完成,GAppProxy 服务已经启动。
::@echo.
::@echo 您可以关闭这个窗口,开始使用代理了。
::@echo.
::@echo Enjoy it :-)
::@echo.
::@pause
--------------------------------------query----------------------------------------------------
:: In Windows xp, 'sc query' will always exit with status code '0',
:: no matter the query faild or not.
sc query GAppProxy | find "SERVICE_NAME: GAppProxy"
--------------------------------------uninstall----------------------------------------------------
sc stop GAppProxy
sc delete GAppProxy
::@echo.
::@echo 操作成功,GAppProxy 服务已被删除 :-)
::@echo.
::@pause
No comments:
Post a Comment