How to make a new line in a batch file?

October 10, 2010 at 00:02:33
Specs: Windows 7
I'm trying to make a batch file that creates a second batch file. The second batch file needs to have 2 lines: PAUSE and a delete line.

@echo off
echo del C:\Users\spen\Desktop\first.bat >new.bat
start new.bat
del C:\Users\spen\Desktop\new.bat

How can I make it so the first batch file ^^^ writes:

@echo off
del C:\Users\spen\Desktop\first.bat

in the second batch file?

See More: How to make a new line in a batch file?

Report •

October 10, 2010 at 13:34:10
In the first write this:

ECHO @echo off
ECHO del C:\Users\spen\Desktop\first.bat)>>MyFile.bat

Can I put a question here?

Report •

October 10, 2010 at 17:18:31
why do you need to create another batch? Why can't you do everything in one batch?

GNU win32 packages | Gawk

Report •
Related Solutions

Ask Question