cmd - batch file echo line with 0 does not write to file -
i have in batch file...
echo actionnumber=0>> %wkdir%\some.ini
...problem is, never gets written file rather displayed on console this...
actionnumber=
if had...
echo actionnumber=20>> %wkdir%\some.ini
...it get's written fine
how can write line file "actionnumber=0" (without quotes, i'm showing needs 1 line no spaces, no trailing space either)
>>%wkdir%\some.ini echo actionnumber=20
unfortunately, space-after-digit solution echoes space file, have trailing spaces.
(that's gotcha digit preceding redirector)
Comments
Post a Comment