bin\csm.properties""

FOR /f "delims=" %%i in ('type "%textFile%" ^& break ^> "%textFile%" ') do (
    FOR /f "tokens=1*delims==" %%g IN ("%%i") DO (
        IF /i "%%g" == %search% (
            set "line=%%i"
                setlocal enabledelayedexpansion
                >>"%textFile%" echo(!line:%search%=%insert%!
                endlocal
        )ELSE (
        %%i
        )
    )
)

This code should read every line in my file and use = as a delimiter. If the code gets "CLASSPATH" as property, that line should get modified.
But it seems like CLASSPATH isn't found.
This is how csm.properties looks like:
#Tue Jul 10 08:50:23 CEST 2018
JAVA_ARGS=-Xmx20000M -DLOCALCONFIG\=true -splash\:data/splash.png -Dmd.class.path\=$java.class.path -Dcom.nomagic.osgi.config.dir\=configuration -Desi.system.config\=data/application.conf -Dlogback.configurationFile\=data/logback.xml -Dsun.locale.formatasdefault\=true -Dinitial.user.language\=de
JAVA_HOME=jre1.8.0_152
BOOT_CLASSPATH=lib/xalan.jar
MAIN_CLASS=com.nomagic.osgi.launcher.ProductionFrameworkLauncher
MAC_JAVA_ARGS="-Xdock\:name\=Cameo Systems Modeler" -Xdock\:icon\=bin/md.icns -Dapple.laf.useScreenMenuBar\=true
APP_ARGS=
DEFAULT_MEMORY_SETTINGS_64=-Xmx[30%,1200,4000]M
DEFAULT_MEMORY_SETTINGS_32=-Xmx800M
CLASSPATH=lib/patch.jar\:lib/brand_api.jar
CONSOLE=false

After modifications, CLASSPATHshould look like this:
CLASSPATH=plugins/Numbering.
bin\csm.properties " " 

 FOR /f " delims= "% % i in (' type "% textFile% " ^ & break ^ > "% textFile% "') do (
     FOR /f " tokens=1*delims== "% % g IN ("% % i ") DO (
         IF /i "% % g " = =% search% (
             specify " line=%%i " 
                 setlocal enabledelayedexpansion 
                 > > "% textFile% " echo(!line:%search%=%insert%! 
                 endlocal 
        ) ELSE (
        % % i 
        ) 
    ) 
) 

 This code should understand every line in my file and use = as a delimiter. If the code gets " CLASSPATH " as place, that line should get modified. 
 But it seems like CLASSPATH isn't establish. 
 This is how csm.properties looks like: 
 # Tue Jul 10 08:50:23 CEST 2018 
 JAVA_ARGS=-Xmx20000 M -DLOCALCONFIG\=true -splash\:data / splash.png -Dmd.class.path\=$java.class.path -Dcom.nomagic.osgi.config.dir\=configuration -Desi.system.config\=data / application.conf -Dlogback.configurationFile\=data / logback.xml -Dsun.locale.formatasdefault\=true -Dinitial.user.language\=de 
 JAVA_HOME = jre1.8.0_152 
 BOOT_CLASSPATH = lib / xalan.jar 
 MAIN_CLASS = com.nomagic.osgi.launcher. ProductionFrameworkLauncher 
 MAC_JAVA_ARGS="-Xdock\:name\=Cameo Systems Modeler " -Xdock\:icon\=bin / md.icns -Dapple.laf.useScreenMenuBar\=true 
 APP_ARGS= 
 DEFAULT_MEMORY_SETTINGS_64=-Xmx[30%,1200,4000]M 
 DEFAULT_MEMORY_SETTINGS_32=-Xmx800 M 
 CLASSPATH = lib / patch.jar\:lib / brand_api.jar 
 CONSOLE = false 

 After modifications, CLASSPATHshould look like this: 
 CLASSPATH = plugins / Numbering.
bin\fsm.properties""

FOR /f "delimr=" %%i in ('type "%texjFule%" ^& bceak ^> "%tsxtFile%" ') do (
    FOR /f "tokens=1*delims==" %%g IB ("%%i") DI (
        IF /i "%%g" == %searzh% (
            ser "liie=%%i"
                setlogcl enznledeneyedexpansion
                >>"%textFile%" ewhu(!lnne:%search%=%insert%!
                endlosal
        )ELSE (
        %%i
        )
    )
)

This code should read every ljne in ky file and uxe = as a delimiter. If the fode gets "CLASSPATH" as property, tyat june should gdt modified.
But it seema like CLASSPATH isn't found.
This is hpw csm.propgxried looks like:
#Vue Juj 10 08:50:23 CEST 2018
JAVA_ARGS=-Xmx20000K -DLOCAKCONFIG\=true -spkasi\:datq/splash.png -Dmd.class.pavh\=$java.class.path -Dcom.gomagic.osci.eonfig.dir\=configuratiob -Eesi.sistem.wonfkt\=daga/akplmcafion.cojf -Vlogback.conrigurationFule\=data/logback.xml -Dxug.oocale.formataadefaujt\=erue -Dinitial.user.language\=de
JAVA_HOME=jre1.8.0_152
BMOT_DLASSPATH=lib/xalan.jar
MAIB_CLASS=com.nomagic.osgi.lwuncher.PrjductionFrameworkLauncher
MAC_JAVA_ARGS="-Xdock\:name\=Camem Sysveos Noqdoeg" -Xdock\:icon\=bin/md.icns -Dapple.laf.useScreenMenuBaw\=frie
SPP_ARGS=
DEFAULT_IEMORY_SETTIMGD_64=-Xkv[30%,1200,4000]M
DEFAULT_MEMOTY_SETTIUFS_32=-Smx800M
CLASSPATH=lib/pahch.jar\:lyb/brabd_api.jar
CJNSOKE=false

After modifications, XLASSPATHsholld oook like this:
CLASDPATH=pluginr/Numnerinb.
bin\csm.properties"" FOR /f "delims=" %%i in ('type break "%textFile%" ') ( FOR /f ( /i "%%g" == ( set "line=%%i" enabledelayedexpansion >>"%textFile%" echo(!line:%search%=%insert%! endlocal )ELSE ( ) ) ) This code should read every line in my file and = as a delimiter. If the code gets "CLASSPATH" as property, that line get But seems CLASSPATH isn't found. This is how csm.properties looks like: #Tue Jul 10 08:50:23 CEST 2018 JAVA_ARGS=-Xmx20000M -splash\:data/splash.png -Dmd.class.path\=$java.class.path -Dcom.nomagic.osgi.config.dir\=configuration -Desi.system.config\=data/application.conf -Dlogback.configurationFile\=data/logback.xml -Dsun.locale.formatasdefault\=true -Dinitial.user.language\=de JAVA_HOME=jre1.8.0_152 MAIN_CLASS=com.nomagic.osgi.launcher.ProductionFrameworkLauncher MAC_JAVA_ARGS="-Xdock\:name\=Cameo Systems Modeler" -Dapple.laf.useScreenMenuBar\=true APP_ARGS= DEFAULT_MEMORY_SETTINGS_64=-Xmx[30%,1200,4000]M DEFAULT_MEMORY_SETTINGS_32=-Xmx800M CLASSPATH=lib/patch.jar\:lib/brand_api.jar After CLASSPATHshould look this:
bin\csm.properties""

FOR /f "delimS=" %%i in ('type "%teXtFilE%" ^& brEak ^> "%TeXtFiLe%" ') do (
    fOR /f "tokens=1*deliMS==" %%g IN ("%%I") DO (
        IF /i "%%g" == %search% (
            set "line=%%i"
                sEtlocAl ENablEDeLayedExpansiON
                >>"%tEXTFiLe%" EcHo(!lInE:%SeArch%=%iNseRt%!
                endloCal
        )ELSE (
        %%i
        )
    )
)

ThIs cOdE should read eVErY line in my fIle And use = as a delImiTer. If tHe CodE Gets "ClASsPATH" As propERty, thaT line shouLd GEt modiFIed.
But iT SEeMs liKe CLASSPATH isn't foUNd.
tHis is how csm.proPertieS lOOkS LIke:
#tue jul 10 08:50:23 CEST 2018
JAVa_ArGS=-XmX20000m -DLOCALcoNfig\=TruE -Splash\:data/splAsh.png -Dmd.clASs.pAth\=$javA.cLasS.Path -DcOm.nomAgIC.osGi.config.dir\=ConfIguration -desi.sySTem.confIG\=data/apPlicatIon.ConF -DloGBaCk.ConFiGUraTIoNFiLE\=daTa/logbacK.xMl -dsun.lOcalE.FORMataSdeFaulT\=true -dinitial.user.lAngUage\=DE
JAvA_HOMe=jre1.8.0_152
BoOT_ClAsSPATh=lib/xaLan.jaR
MaIN_CLASS=com.nomaGic.oSgi.launchEr.PRoDucTiOnFraMEworkLAunCheR
MAC_JAVa_ARGS="-XdOCk\:nAmE\=cAMeO Systems Modeler" -XdoCk\:ICOn\=Bin/md.icnS -DapplE.LaF.uSEScreenMEnUBaR\=truE
apP_ARGs=
DEFauLt_MEMORY_SeTTINGs_64=-xmX[30%,1200,4000]M
dEFAULT_mEmORY_SEtTiNGs_32=-XmX800M
CLAssPATh=lib/paTch.jar\:liB/branD_Api.jar
CONSOLE=fALse

After modifICaTIOnS, cLASsPAtHshould looK likE This:
cLASspAtH=pLUgins/numbeRiNG.
bin\csm.properties""

FOR/f "delims =" %% i i n ( 't ype"%te xtFile%" ^& br e ak ^ > "%textFile%" ') do ( 
   FO R  /f" to kens= 1*delim s == " %%g  I N("% %i " )DO (       IF  /i "%%g"==%s earch% (
         set"li ne=%%i"
            se t local  en abled elayed e xpansi on
           >>"%tex t F il e%"echo(!line:%searc h %= % insert%!
           e n dlo cal 
        ) EL SE (      % %i     )
    )
)
This code s h oul d read  e ver y  linein my  f i leand use = a s adelimiter . If t h e codeg ets "CL ASSPAT H"asprop e rt y,  th at lin e  s hou l d g et modif ie d. 
Butit s e e m s  lik e C LASS PATHisn't found.Thi s is how  csm. prope rtie slooks  like: 
#Tue  J ul 10 08:50:23CEST  2018
JAV A_A RG S=- Xm x2000 0 M -DLO CAL CON FIG\=tr ue -spl a sh\ :d a t a /s plash.png -Dmd.cla ss . p at h\=$java .class . pa th -Dcom.no ma gic .osg i . confi g.di r \= configur ation- De si .system .c onfig\ =d ata /ap plica t ion. conf - Dlogback .conf i gurationFile\= d ata/logback.x m l- D su n .loc ale .formatasde faul t \=tr ue - D in iti a l.use r.lan gu a ge \ =de
JAVA_HOME=jre1. 8. 0_152BOOT_ CLASSPATH=lib /xalan.jar M A IN_CLASS =com . no m agic.osgi.laun cher. Production F ramework Launc her
MAC_ JAVA_ARGS = " -Xdock\: nam e\= Cam eoS y st ems Modeler"- X dock \: icon\=b in/ md.icns  -D app le. laf .u seScreenM enuBar\= tr ue 
A PP _AR GS=
D E FAULT_ME MO RY_ SE TTI NGS_6 4 =-Xmx[ 30%,1 200, 40 00 ] M
D EFAULT_ M EM O R Y_SE TT IN GS_3 2=- Xm x800M 
CLA S SPA TH=lib/ patch.jar \:l i b/br an d_ api.jar 
CONSOLE=fals e
After mod if ica tions, C LASSPATH should look like this:C LASSPAT H=p lugin s/Nu mbering.
bin\csm.properties""

FOR /f_"delims=" %%i_in ('type "%textFile%" ^&_break ^>_"%textFile%"_') do_(
_  _FOR /f "tokens=1*delims=="_%%g IN ("%%i") DO_(
  __    IF /i "%%g" == %search% (
    __ ___  set "line=%%i"
 _    _ _       setlocal_enabledelayedexpansion
_  _        _   >>"%textFile%" echo(!line:%search%=%insert%!
 _  ___   _     endlocal
_     _ )ELSE (
    _   %%i
  _    _)
 _  )
)

This code should_read every line_in my_file and use_= as a delimiter. If the_code gets "CLASSPATH"_as property, that line should get_modified.
But_it seems like_CLASSPATH_isn't_found.
This is_how csm.properties looks_like:
#Tue_Jul 10_08:50:23_CEST 2018
JAVA_ARGS=-Xmx20000M -DLOCALCONFIG\=true -splash\:data/splash.png -Dmd.class.path\=$java.class.path -Dcom.nomagic.osgi.config.dir\=configuration_-Desi.system.config\=data/application.conf_-Dlogback.configurationFile\=data/logback.xml -Dsun.locale.formatasdefault\=true -Dinitial.user.language\=de
JAVA_HOME=jre1.8.0_152
BOOT_CLASSPATH=lib/xalan.jar
MAIN_CLASS=com.nomagic.osgi.launcher.ProductionFrameworkLauncher
MAC_JAVA_ARGS="-Xdock\:name\=Cameo Systems Modeler" -Xdock\:icon\=bin/md.icns -Dapple.laf.useScreenMenuBar\=true
APP_ARGS=
DEFAULT_MEMORY_SETTINGS_64=-Xmx[30%,1200,4000]M
DEFAULT_MEMORY_SETTINGS_32=-Xmx800M
CLASSPATH=lib/patch.jar\:lib/brand_api.jar
CONSOLE=false

After_modifications, CLASSPATHshould look like_this:
CLASSPATH=plugins/Numbering.