下载地址:https://pan.baidu.com/s/1r9nZleyPNaxSM0PKe12mig?pwd=dqzt
1.配置NPC客户端WINDOWS开机启动
新建一个 npc.bat文件
@echo off
::去除黑窗口
if “%1” == “h” goto begin mshta vbscript:createobject(“wscript.shell”).run(“%~nx0 h”,0)(window.close)&&exit :begin
::启动内网穿透,并自动最小化运行
::进去npc文件夹
cd C:\Users\Administrator\Desktop\windows_amd64_client\windows_amd64_client
::复制npc客户端命令
npc.exe -server=43.1xx.197.x:xxxx -vkey=ixx77xxxxxxwxk29 -type=tcp
pause>nul
::按任意键退出
2.NPS服务端WINDOWS开机启动,配置同1类似,按需配置。
3.进入计算机管理→添加一个任务,选择那个.bat为启动程序,触发器选在系统启动时运行
- 本文来源链接地址: https://www.npspro.cn/24732.html