MS Batch in einer .txt. Datei bei allen Zeilen das aktuelle Datum vorne dran setzen
Hallo Zusammen
Ich habe die Aufgabe ein Batch Script zu machen, das von einem Textfile die Daten ausliest und in ein Textfile auf einem Server einfügt mit dem aktuellen Datum vorne dran.
So weit bin ich gekommen:
Kann mir jemand helfen?
So weit bin ich gekommen:
ECHO off
if not exist "xz.txt" goto missing else goto einlesen
:einlesen
ECHO #############################
ECHO ## Einlesen des Text Files ##
ECHO #############################
ECHO .
MORE xz.txt >> temp.txt
MORE temp.txt >> \\server\verzeichnis\text.txt
DEL temp.txt
ECHO #############
ECHO ## Kopiert ##
ECHO #############
ECHO .
goto end
:missing
ECHO ######################
ECHO ## TEXT FILE FEHLT! ##
ECHO ######################
ECHO .
goto end
:end
pause
Kann mir jemand helfen?
Please also mark the comments that contributed to the solution of the article
Content-Key: 123225
Url: https://administrator.de/contentid/123225
Printed on: April 25, 2024 at 01:04 o'clock
7 Comments
Latest comment