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-Key: 117621

Url: https://administrator.de/contentid/117621

Printed on: April 23, 2024 at 16:04 o'clock

Mitglied: 76109
76109 Jun 06, 2009 at 16:26:36 (UTC)
Goto Top
Hallo Motocross!

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

Gruß Dieter
Member: Motorcross
Motorcross Jun 06, 2009 at 18:17:12 (UTC)
Goto Top
Hallo Dieter!
Danke für die Info!
Gruß Motorcross