How to insert string containing = using batch script -


i have config string.

connection_timeout = 5 

want insert string batch file config file.

echo connection_timeout = 5>a.txt 

it fails. file a.txt empty. guess command line thinks connection_timeout variable in itself. tried enclosing line in double quotes

echo "connection_timeout = 5">a.txt 

but file contains string double quotes , not without it.

also tried

echo connection_timeout ^= 5>a.txt 

but no luck. there way it?