compane
Goto Top

log-datei in XML umwandeln

Hallo zusammen

Ich habe derzeit eine "denkblockate" (mir fehlt voll der Ansatz) und hoffe ihr könnt mir da weiterhelfen.

Folgendes:

Ich habe folgende logdatei für eine Archivierung:


RAR 3.71 Copyright (c) 1993-2007 Alexander Roshal 20 Sep 2007
Shareware-Version Geben Sie RAR -? fr Hilfe ein.

Archiv c:\20080629230354_backup.rar

Name GrӇe Gepak. Verh. Datum Zeit Attr. CRC Meth Ver
Text1 (1).bak 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (10).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (11).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (12).alf 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (3).dmp 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (4).sav 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (5).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (6).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (7).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (8).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (9).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
text2.cdc 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
12 0 0 0%

Archiv c:\20080629230404_backup.rar

Name GrӇe Gepak. Verh. Datum Zeit Attr. CRC Meth Ver
Text1 (1).bak 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (10).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (11).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (12).alf 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (3).dmp 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (4).sav 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (5).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (6).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (7).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (8).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (9).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
text2.cdc 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
12 0 0 0%

Archiv c:\20080629233529_backup.rar

Name GrӇe Gepak. Verh. Datum Zeit Attr. CRC Meth Ver
Text1 (1).bak 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (10).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (11).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (12).alf 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (3).dmp 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (4).sav 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (5).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (6).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (7).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (8).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (9).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
text2.cdc 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
12 0 0 0%

Archiv c:\20080630120744_backup.rar

Name GrӇe Gepak. Verh. Datum Zeit Attr. CRC Meth Ver
Text1 (1).bak 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (10).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (11).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (12).alf 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (3).dmp 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (4).sav 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (5).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (6).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (7).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (8).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
Text1 (9).txt 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
text2.cdc 0 0 0% 25-06-08 15:54 .....A. 00000000 m0b 2.9
12 0 0 0%

48 0 0 0%


nun will ich eine batch schreiben die daraus eine xml-form macht, der Knotenname Automatisch hochzählt da die dateien unterschiedlich sind (mal sind es 8 mal 20). es müsste dann so aussehen:

<20080629230354_backup>
<Datei1>Text1 (1).bak</Datei1>
<Datei2>Text1 (10).txt</Datei2>
<Datei3>Text1 (11).txt</Datei3>
<Datei4>Text1 (12).alf</Datei4>
<Datei5>Text1 (3).dmp</Datei5>
<Datei6>Text1 (4).sav</Datei6>
<Datei7>Text1 (5).txt</Datei7>
<Datei8>Text1 (6).txt</Datei8>
<Datei9>Text1 (7).txt</Datei9>
<Datei10>Text1 (8).txt</Datei10>
<Datei11>Text1 (9).txt</Datei11>
<Datei12>text2.cdc</Datei12>
</20080629230354_backup>
<20080629230404_backup>
<Datei1>Text1 (1).bak</Datei1>
<Datei2>Text1 (10).txt</Datei2>
<Datei3>Text1 (11).txt</Datei3>
<Datei4>Text1 (12).alf</Datei4>
<Datei5>Text1 (3).dmp</Datei5>
<Datei6>Text1 (4).sav</Datei6>
<Datei7>Text1 (5).txt</Datei7>
<Datei8>Text1 (6).txt</Datei8>
<Datei9>Text1 (7).txt</Datei9>
<Datei10>Text1 (8).txt</Datei10>
<Datei11>Text1 (9).txt</Datei11>
<Datei12>text2.cdc</Datei12>
</20080629230404_backup>
usw. .......


Ich hoffe ihr könnt mir da weiter helfen.

Danke schon mal

Compane

Content-Key: 90946

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

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