Search found 3 matches

by Craig
21 Jan 2021 15:14
Forum: DOS Batch Forum
Topic: JSON file in wrong format.
Replies: 3
Views: 4591

JSON file in wrong format.

When my batch file downloads this json file it is not "pretty". @ECHO OFF ECHO. %~n0: Getting JSON files from Web page. SETLOCAL EnableDelayedExpansion curl -o Ports.json http://storage.googleapis.com/nacleanopenworldprodshards/Ports_cleanopenworldprodeu1.json However when I view it using a web base...
by Craig
11 Jan 2021 14:01
Forum: DOS Batch Forum
Topic: CALL JREPL not returning "wanted" results.... help
Replies: 2
Views: 3524

Re: CALL JREPL not returning "wanted" results.... help

Thanks, just posting this has somehow enabled me to figure it out... lol
My pattern was wrong and I needed to include the option /MATCH

CALL JREPL "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" "" /MATCH /F Line1.txt /O "Version.txt"

feel free to add any comments, however I'm good now.... PHEW!!
by Craig
11 Jan 2021 08:06
Forum: DOS Batch Forum
Topic: CALL JREPL not returning "wanted" results.... help
Replies: 2
Views: 3524

CALL JREPL not returning "wanted" results.... help

I need help. Line1.txt contains 1 line below and is located in the same folder as my batch file. <a href="/LunaMultiplayer/LunaMultiplayer/tree/0.27.0" class="muted-link css-truncate" title="0.27.0"> My batch plzwork.bat is as follows: @ECHO OFF ECHO. %~n0: PLEASE WORK THIS TIME. SETLOCAL DisableDel...