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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -