-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.bat
47 lines (45 loc) · 1.21 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
title RatPoison Builder
@ECHO OFF
set PATH=%JAVA_HOME%\bin
echo JAVA_HOME = %JAVA_HOME%
echo PATH = %PATH%
call gradlew RatPoison --warning-mode all
echo.
echo If there is an error message, close this window and google the issue.
echo.
set /P c=Would you like to randomize the file name for safety? [Y/N]
if /I "%c%" EQU "Y" goto :y
if /I "%c%" EQU "N" goto :n
:y
rem 16 stings pwd
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
set pwd=
FOR /L %%b IN (0, 1, 16) DO (
SET /A rnd_num=!RANDOM! * 62 / 32768 + 1
for /F %%c in ('echo %%alfanum:~!rnd_num!^,1%%') do set pwd=!pwd!%%c
)
cd build
cd RatPoison 1.8
ren "RatPoison 1.8.jar" "%pwd%.jar"
powershell -Command "(Get-Content -path 'Start RatPoison 1.8.bat') -replace 'RatPoison 1.8', '%pwd%' | Set-Content -Path 'Start RatPoison 1.8.bat'"
ren "Start RatPoison 1.8.bat" "%pwd%.bat"
echo.
echo File name has been randomized.
goto :n
:n
cd build
cd RatPoison 1.8
echo.
set /P c=Would you like to open the cheat folder? [Y/N]
if /I "%c%" EQU "Y" goto :y1
if /I "%c%" EQU "N" goto :n1
:y1
start.
goto :n1
:n1
echo.
echo To run this cheat, open csgo and run the bat folder in the cheat folder.
echo.
pause