So, hier ist mein CodeAnfügen wörtlichen Text in eine Datei
@echo off
:top
cls
echo Welcome to your custom terminal, Ayden
set /p enter=Enter:
if %enter% == start echo start > temp.txt
if %enter% == start goto top
if %enter% == live goto live
del executable.bat >nul
echo @echo off > executable.bat
notepad executable.bat
goto top
:live
cls
:overthere
set /p input=Ayden:
(
echo @echo off
) > executable.bat
echo echo %input% > temp2.txt >> executable.bat
pause
:overhere
if not exist temp2.txt goto overhere
type temp2.txt
del temp2.txt
goto overthere
Aber "executable.bat" dieses
@echo off
echo dir
enthalten, landet ist es eine Möglichkeit, dass ich kann "echo dir" machen in "echo dir> temp2.txt"? Ich habe versucht, Zitate, während das funktioniert, gibt es immer noch ein Problem, das ist, wenn es in der Datei ist es noch die Zitate um es hat.
Wenn jemand [Enter]/[return] eingibt, schlägt Ihr Stapel fehl, da die linke Seite des Vergleichs leer ist. Fügen Sie eine Konstante zu beiden Seiten hinzu, um dies zu vermeiden. – LotPings