1
0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity GitHub Gitee

initial commit

This commit is contained in:
程序员小墨 2024-11-04 15:56:12 +08:00
commit 0f8f97112a
4 changed files with 17 additions and 0 deletions

BIN
WinSW-x64.exe Normal file

Binary file not shown.

12
WinSW-x64.xml Normal file
View File

@ -0,0 +1,12 @@
<service>
<!-- 指定在Windows系统内部使用的识别服务的ID。在系统中安装的所有服务中这必须是唯一的它应该完全由字母数字字符组成 -->
<id>rathole</id>
<!-- 服务的简短名称它可以包含空格和其他字符。尽量简短就像“id”一样在系统的所有服务名称中也要保持唯一 -->
<name>rathole</name>
<!-- 该服务可读描述。当选中该服务时它将显示在Windows服务管理器中 -->
<description>内网穿透 Rathole</description>
<!-- 该元素指定要启动的可执行文件 -->
<executable>D:\nat\start.bat</executable>
<!-- 日志输出位置 -->
<logpath>D:\nat\Logs</logpath>
</service>

3
install service.bat Normal file
View File

@ -0,0 +1,3 @@
"WinSW-x64.exe" install
net start rathole
pause

2
uninstall service.bat Normal file
View File

@ -0,0 +1,2 @@
"WinSW-x64.exe" uninstall
pause