T
thinktwice
here is my config file:
//config.ini
WORKINGDIR=C:\workspace
LOGDIR=C:\log
BUILDDIR=C:\build
for /f "tokens=1,2 delims==" %%i in ('findstr /c:WORKINGDIR=
config.ini') do @set WORKINGDIR=%%j
for /f "tokens=1,2 delims==" %%i in ('findstr /c:LOGDIR= config.ini')
do @set LOGDIR=%%j
for /f "tokens=1,2 delims==" %%i in ('findstr /c:BUILDDIR=
config.ini') do @set BUILDDIR=%%j
but it doesnt work as i think.
findstr /c:WORKINGDIR config.ini
returns "LOGDIR=C:\loge"
i don't know why it returns the next line of my target line? why it
returns C:\loge but not c:\log???
//config.ini
WORKINGDIR=C:\workspace
LOGDIR=C:\log
BUILDDIR=C:\build
for /f "tokens=1,2 delims==" %%i in ('findstr /c:WORKINGDIR=
config.ini') do @set WORKINGDIR=%%j
for /f "tokens=1,2 delims==" %%i in ('findstr /c:LOGDIR= config.ini')
do @set LOGDIR=%%j
for /f "tokens=1,2 delims==" %%i in ('findstr /c:BUILDDIR=
config.ini') do @set BUILDDIR=%%j
but it doesnt work as i think.
findstr /c:WORKINGDIR config.ini
returns "LOGDIR=C:\loge"
i don't know why it returns the next line of my target line? why it
returns C:\loge but not c:\log???