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
Moderator: DosItHelp
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
Code: Select all
@echo off
>"d.bat" 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"
pause