Error with creating a .bat file from a batch file
Posted: 04 Nov 2020 15:56
Hi everyone!
Here i just want to create a simple batch file called d.bat from a batch file.
But when I run this batch file all i get in the output batch file is just the last line (start x.bat)
Is there any way to fix this issue?
Here i just want to create a simple batch file called d.bat from a batch file.
Code: Select all
@echo off
echo @echo off>d.bat
echo :l>d.bat
echo if exist d.d goto a>d.bat
echo goto l>d.bat
echo :a>d.bat
echo start x.bat>d.bat
pause
exit