在某些场景,我们可能需要写入bat,vbs,py等文件,当我们逐个echo将字符写入文件时,写入内容会自动换行:
可以通过命令 >>text.txt set/p="test" < nul 避免写入内容被换行