4/12/2023 0 Comments Batch file properties editor![]() ![]() If not defined FoundInfo echo CLASSPATH=plugins/Numbering.jar>"%TempFile%" ) else if "!Line:plugins/Numbering.jar=!" = "!Line!" ( ![]() Set "TextFile=%workingPlace%bin\csm.properties" If not defined workingPlace set "workingPlace=%~dp0" Setlocal EnableExtensions DisableDelayedExpansion ![]() Here is my solution for this string replacement task using only internal commands of cmd.exe with exception of FINDSTR. MAC_JAVA_ARGS="-Xdock\:name\=Cameo Systems Modeler" -Xdock\:icon\=bin/md.icns \=trueĭEFAULT_MEMORY_SETTINGS_64=-XmxMĬLASSPATH=lib/patch.jar\:lib/brand_api.jarĪfter modifications, CLASSPATHshould look like this: CLASSPATH=plugins/Numbering.jar\:lib/patch.jar\:lib/brand_api.jar JAVA_ARGS=-Xmx20000M -DLOCALCONFIG\=true -splash\:data/splash.png \=$ .dir\=configuration \=data/nf nfigurationFile\=data/logback.xml \=true \=de This is how csm.properties looks like: #Tue Jul 10 08:50:23 CEST 2018 If the code gets "CLASSPATH" as property, that line should get modified. This code should read every line in my file and use = as a delimiter. Set "textFile="%workingPlace%bin\csm.properties""įOR /f "delims=" %%i in ('type "%textFile%" ^
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |