windows server 2008 r2 - Using bat script to write text file: missing character -


i using bat script attempt write several lines text file. however, in 1 case, character being dropped wish write.

here code:

@echo off @echo san policy=onlineall> test.txt @echo select disk 1>> test.txt @echo online disk>> test.txt 

here resulting text file (test.txt)

san policy=onlineall select disk  online disk 

why "1" missing resulting code?

escaping 1 caret work:

@echo off @echo san policy=onlineall> test.txt @echo select disk ^1>> test.txt @echo online disk>> test.txt 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -

jquery - Keeping Kendo Datepicker in min/max range -