>>45
とりあえずリブートはできたけど、美しくないので清書求む
home_5G_Reboot - sample.bat
-----------------------------------------------------------
set pwd_home5g=ここにパスワード(%記号を含めると動かないかも)

set file1=session_token.txt
IF EXIST %file1% DEL %file1%

rem Home
curl "http://web.setting/cgi-bin/qcmap_web_cgi"; -X POST --data-raw "Page=GetNativeAppStatus&token="

rem Login
curl "http://web.setting/cgi-bin/qcmap_auth"; -X POST --data-raw "type=login&pwd=%pwd_home5g%&timeout=600&user=admin" -o tmp_home5g.txt


rem Get token
set /P string=<tmp_home5g.txt
echo %string:~-18,16%>>%file1%
set /P session_token=<%file1%

rem Reboot
curl "http://web.setting/cgi-bin/qcmap_web_cgi"; -X POST -H "Cookie: session_token=%session_token%" --data-raw "Page=RebootDevice&token=%session_token%"

pause