Text in .txt Datei schreiben
Hallo Administratoren,
ich habe mir eine Batch Datei programmiert die einen bestimmten Text in eine .txt Datei kopiert das Skript sieht so aus:
@echo off
echo _____________________________________________________________ >test.txt
echo |Konto-Nummer | Bertag:Euro | >>test.txt
echo |___________________|______________________________________ __ | >>test.txt
echo |Kontobezeichnung | >>test.txt
echo | | >>test.txt
echo |____________________________________________________________| >>test.txt
echo Raum für Maschinendruck >>test.txt
echo %random% %random% %time:~0,8% Einz. %random%%random% **%add%+ Euro >>test.txt
Wenn ich das Programm ausführe dann erscheint nur die erste Zeile in der .txt Datei!
Weiß irgendwer wo mein Fehler liegt?
Gruß Motorcross
@echo off
echo _____________________________________________________________ >test.txt
echo |Konto-Nummer | Bertag:Euro | >>test.txt
echo |Kontobezeichnung | >>test.txt
echo | | >>test.txt
echo |____________________________________________________________| >>test.txt
echo Raum für Maschinendruck >>test.txt
echo %random% %random% %time:~0,8% Einz. %random%%random% **%add%+ Euro >>test.txt
Wenn ich das Programm ausführe dann erscheint nur die erste Zeile in der .txt Datei!
Weiß irgendwer wo mein Fehler liegt?
Gruß Motorcross
Please also mark the comments that contributed to the solution of the article
Content-Key: 117621
Url: https://administrator.de/contentid/117621
Printed on: April 23, 2024 at 16:04 o'clock
2 Comments
Latest comment
Hallo Motocross!
Du musst bei "|" ein "^" voranstellen z.B. ^|Konto-Nummer ^| Bertag:Euro ^| >> test.txt
Gruß Dieter
Du musst bei "|" ein "^" voranstellen z.B. ^|Konto-Nummer ^| Bertag:Euro ^| >> test.txt
Gruß Dieter