motorcross
Goto Top

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

Content-ID: 117621

Url: https://administrator.de/forum/text-in-txt-datei-schreiben-117621.html

Ausgedruckt am: 10.04.2025 um 11:04 Uhr

76109
76109 06.06.2009 um 18:26:36 Uhr
Goto Top
Hallo Motocross!

Du musst bei "|" ein "^" voranstellen z.B. ^|Konto-Nummer ^| Bertag:Euro ^| >> test.txt

Gruß Dieter
Motorcross
Motorcross 06.06.2009 um 20:17:12 Uhr
Goto Top
Hallo Dieter!
Danke für die Info!
Gruß Motorcross