sneaky4oe icon

UPDATE-KEY.bat

sneaky4oe | PRO | 06/20/18 08:12:48 PM UTC | 0 ⭐ | 451 👁️ | Never ⏰ | []
Batch |

640 B

|

None

|

0 👍

/

0 👎

@echo off
setlocal EnableDelayedExpansion
 
FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
 
    del %BATDIR%\conf\nginx.conf
    TYPE %BATDIR%\temp\conftemplate.conf >> %BATDIR%\conf\nginx.conf
    call %BATDIR%/temp/ServerSelector.bat
 
 
:repeatkeyinput
    echo.
    echo Copy your key from restream.io and paste it with right mouse button
    SET /P streamkey="Restream key: "
    echo streamkey is set to "!streamkey!"
    if "!streamkey!"=="" goto repeatkeyinput
 
    echo !streamkey!>> %BATDIR%\conf\nginx.conf
    echo ;}}} >> %BATDIR%\conf\nginx.conf
 
    echo updating nginx process
    taskkill /f /IM %BATDIR%\nginx.exe > nul 2> nul
    start "" "%BATDIR%\nginx.exe"

Comments