I am creating a .bat file, that creates and writes code to another .bat file.
The problem is, it always leaves a blank line in the end. My code is:
ECHO ^@echo off> fb.bat
ECHO echo This is a>> fb.bat
ECHO test>> fb.bat
ECHO file>> fb.bat
And the output is like:
@echo off
echo This is a
test
file
How can I prevent it from creating a blank line in the end?