Read a .properties file in batch

May 12, 2011 at 19:39:57
Specs: Windows 7
I have a properties file ( that contains the lines

The user will fill those parameter say


Now, I want to create a batch file that gets the parameter and my.webSphere.profile from


See More: Read a .properties file in batch

Report •

May 13, 2011 at 02:39:06
@echo off
for /F "delims=" %%j in ('type ""') do set %%j
set my.webShere

And now... beware the environment variables the batch sets up are not persistent, i.e. they vanish at batch's end.

Report •
Related Solutions

Ask Question