chengqiang521

nps内网穿透开机自启动设置

.bat文件

@echo off

::去除黑窗口
if "%1" == "h" goto begin 
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 
:begin
::启动内网穿透,并自动最小化运行


::进去nps文件夹
cd C:\Users\Administrator\Desktop\windows_amd64_client.tar(1)\windows_amd64_client
::复制nps客户端命令
npc.exe -server=43.1xx.197.x:xxxx -vkey=ixx77xxxxxxwxk29 -type=tcp

pause>nul
::按任意键退出

进入计算机管理→添加一个任务,选择那个.bat为启动程序,触发器选在系统启动时运行

分类:

技术点:

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-07-16
  • 2021-11-02
  • 2021-12-31
  • 2021-09-14
  • 2021-04-29
  • 2021-06-23
猜你喜欢
  • 2021-07-10
  • 2021-07-05
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-08-16
  • 2021-12-31
相关资源
相似解决方案