java - Batch - Error reading File path from Properties file -
i'm using java store directory path properties file.
, in bat file i'm using property variable.
problem in java
file path stored as
some_var=d\:\\madhan\\program files\\xxx\\bin
in properties.
note \:
after drive name.its causing problem when read in batch file.i'm using below bat script refer
for /f "tokens=1,2 delims==" %%g in (config/config.properties) (set %%g=%%h) java -cp xxx.jar;%some_var% xpackage.yclass
if value this
some_var=d:\\madhan\\program files\\xxx\\bin
then it's working fine
is there way in java store without escape character or
how replace \:
:
in bat
set "somevar=%some_var:\:=:%"
Comments
Post a Comment