batch file echo line with 0 does not write to file 转载自:http://stackoverflow.com/questions/17779784/batch-file-echo-line-with-0-does-not-write-to-file

>>%wkdir%\some.ini ECHO ActionNumber=20

Unfortunately, the space-after-digit solution echoes the space into the file, so you have trailing spaces.

(That's a gotcha with any digit immediately preceding a redirector)

share|improve this answer
 
    
Wow- Now that's a creative use of script +1. Much better than my answer! –  Preet Sangha Jul 22 '13 at 4:29
    
Thank you very much! –  TheThankfulOne Jul 22 '13 at 15:53

posted on 2014-03-21 18:30  wensky  阅读(164)  评论(0)    收藏  举报

导航