Advertisement
sneaky4oe

UPDATE-KEY.bat

Jun 20th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.64 KB | None | 0 0
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3.  
  4. FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
  5.  
  6.     del %BATDIR%\conf\nginx.conf
  7.     TYPE %BATDIR%\temp\conftemplate.conf >> %BATDIR%\conf\nginx.conf
  8.     call %BATDIR%/temp/ServerSelector.bat
  9.  
  10.  
  11. :repeatkeyinput
  12.     echo.
  13.     echo Copy your key from restream.io and paste it with right mouse button
  14.     SET /P streamkey="Restream key: "
  15.     echo streamkey is set to "!streamkey!"
  16.     if "!streamkey!"=="" goto repeatkeyinput
  17.  
  18.     echo !streamkey!>> %BATDIR%\conf\nginx.conf
  19.     echo ;}}} >> %BATDIR%\conf\nginx.conf
  20.  
  21.     echo updating nginx process
  22.     taskkill /f /IM %BATDIR%\nginx.exe > nul 2> nul
  23.     start "" "%BATDIR%\nginx.exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement