Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM ORIGINAL SCRIPT # Part of the MUL (Minecraft Universal Launcher)
- REM (c) Copyright 2014-2018 _chunk__ | BatchHacker @ Pastebin.com/u/BatchHacker
- if not exist "%1" goto 1803
- set varx=%1
- set varx=%varx:"=%
- set string1="%varx%"
- for %%c in (%string1%) do set string1=%%~dpc
- for %%b in (%varx%) do set string2=%%~nxb
- set string1=%string1:"=%
- cd %string1%
- %systemroot%\System32\FINDSTR.exe /C:"displayName" %string2%>vary.txt
- if not exist %1 goto 6750
- SET /p vary=<vary.txt
- del /Q vary.txt
- set vary=%vary:~22,100%
- set vary=%vary:"=%
- if "%vary%"=="~22,100" goto 6750
- cls
- echo It is a valid JSON file with Player-Informations
- pause
- exit
- :6750
- cls
- echo It is NOT a valid JSON file with no Player-Informations
- pause>>nul
- if exist "nul" del /q nul
- goto end
- :1803
- echo Syntax:
- echo CJSON ^<JSON File^>
- echo You can also drag and drop the file on the batch.
- echo.
- pause>>nul
- if exist "nul" del /q nul
- :end
Advertisement
Add Comment
Please, Sign In to add comment