FRP Self-Starting in Windows 10
Reference:
- https://blog.csdn.net/leadseczgw01/article/details/103298118
- https://blog.csdn.net/a873744779/article/details/102933229
First step: Create start.bat
under the frp directory:
the content of the start.bat
are following.
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
D:\frp_0.29.0\frpc.exe -c D:\frp_0.29.0\frpc.ini
Second step: Move the shortcut of the start.bat
to Windows 10 StartUp directory:
Create a shortcut of the start.bat
, and move it to StartUp directory as showing below.
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Done!