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
PAUSE
echo del C:\Users\spen\Desktop\first.bat >new.bat
PAUSE
start new.bat
del C:\Users\spen\Desktop\new.batHow can I make it so the first batch file ^^^ writes:
@echo off
PAUSE
del C:\Users\spen\Desktop\first.batin the second batch file?
In the first write this: ( ECHO @echo off ECHO PAUSE ECHO del C:\Users\spen\Desktop\first.bat)>>MyFile.batCan I put a question here?
why do you need to create another batch? Why can't you do everything in one batch?
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |