Jump to content

Around *.cfg edit stuff: [Stock *.cfg concatenater]


Recommended Posts

I quickly made this. some other stuff should come later.

randomname.bat save this in squad/parts/ double click and youpi ;) result all [stock] *.cfg compiled in 2 single *.txt that you can use with all "office" like tools (one include // ---comment---, the other one without )

@ECHO off
ECHO Erasing previous concatenate
ERASE parseFull.txt
ECHO Processing subfolder *.cfg concatenate ...
FOR /R %%i IN (*.cfg) do type "%%i" >> parseFull.txt
ECHO Processed
PAUSE
ECHO Deleting previous Parsing Files ...
ERASE parseSlim.txt
ECHO Processing Parsing ...
FOR /F "eol=/ tokens=1,2,3* delims= " %%a IN (parseFull.txt) do @echo %%a %%b %%c %%d >> parseSlim.txt
ECHO Processed
PAUSE
@ECHO on

Use this in respect with everyone licence i'm not responsible if you do not !

Edited by WinkAllKerb''
fixed & slim fast/weight watcher code typo ;)
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...