Jump to content

Recommended Posts

This is the code from the .bat file. It's suppose to replay a match I've had in a game called "League Of Legends" The website that stores the replay is Lolking.net. I'm pretty sure it doesn't contain malware but just to make sure since I'm skeptical about everything that may contain viruses.

 

@echo off
setlocal ENABLEEXTENSIONS
setlocal EnableDelayedExpansion

set VALUE_NAME=LocalRootFolder

set KEY_NAME=HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS
FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "%KEY_NAME%" /v "%VALUE_NAME%" 2^>NUL ^| FIND "REG_SZ"') DO SET RADS=%%B
IF NOT "!RADS!"=="" GOTO PLAY

set KEY_NAME=HKCU\SOFTWARE\Riot Games\RADS
FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "%KEY_NAME%" /v "%VALUE_NAME%" 2^>NUL ^| FIND "REG_SZ"') DO SET RADS=%%B
IF NOT "!RADS!"=="" GOTO PLAY

set KEY_NAME=HKCU\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS
FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "%KEY_NAME%" /v "%VALUE_NAME%" 2^>NUL ^| FIND "REG_SZ"') DO SET RADS=%%B
IF NOT "!RADS!"=="" GOTO PLAY

set KEY_NAME=HKCU\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Riot Games\RADS
FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "%KEY_NAME%" /v "%VALUE_NAME%" 2^>NUL ^| FIND "REG_SZ"') DO SET RADS=%%B
IF NOT "!RADS!"=="" GOTO PLAY

GOTO NOTFOUND

:PLAY

cd /D %RADS%
cd .\solutions\lol_game_client_sln\releases\
FOR /f %%i in ('dir /a:d /b') do set RELEASE=%%i
cd .\%RELEASE%\deploy

@start "" "League of Legends.exe" "8394" "LoLLauncher.exe" "" "spectator replays.lolking.net:80 A3L73//f2ZlJUjkfm6Pe502xclqtw0XY 1644089986 NA1"
GOTO DONE

:NOTFOUND

echo Could not find League of Legends installation.
@pause

:DONE
endlocal
 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

Back to top
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.