59769
Goto Top

Mittels VBA oder Batch, Zipdatei entpacken und wieder zippen

Hallo zusammen

Problem: wir haben Office 2007 installiert und unsere User hatten das Problem, dass sie die Standartschrift nicht mehr ändern konnten in Office 2007(nicht alle User, aber einige).
Nun habe ich den Fehler gefunden, er liegt in der neuen Normal.dotm.
Eigentlich könnte ich ja jetzt allen die reparierte Normal.dotm auf den PC kopieren, aber dann gehen ja jenste Einstellungen verlohren, wie z.B. Autotexte und sowas und die User würden mich wohl köpfen face-wink

Frage: Ich möchte nun mittels eines Scripts oder Batches die Normal.dotm umbennen in normal.zip, entpacken, die Fehlerhafte Datei ersetzen, das ganze wieder zippen in normal.zip und anschliessend umbennen in normal.dotm. Ist das machbar via einem Script oder Batch?
Bin um jeden Tip dankbar!

Grüsse Muecke

Content-Key: 87306

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

Ausgedruckt am: 28.03.2024 um 08:03 Uhr

Mitglied: schregi82
schregi82 09.05.2008 um 11:58:26 Uhr
Goto Top
Mit 7zip (googlen) lässt sich das einfach in einer Batch umsetzen.
Mitglied: 59769
59769 09.05.2008 um 12:01:24 Uhr
Goto Top
7zip haben wir im Einsatz.
Leider hab ich über google nichts gefunden, wie ich den Batch erstellen könnte (vielleicht hab ich auch mit den falschen Begriffen gesucht)
Mitglied: 60730
60730 09.05.2008 um 12:11:24 Uhr
Goto Top
7z.exe /?

7z.exe a - add to archive
7z.exe x - extract from archive

gruß
Mitglied: 59769
59769 09.05.2008 um 12:12:15 Uhr
Goto Top
So einfach? Cool! Ich versuchs mal face-wink
Mitglied: bastla
bastla 09.05.2008 um 12:18:35 Uhr
Goto Top
Hallo Muecke!

Es gibt mit 7za.exe eine eigene Commandline-Version, Du kannst aber auch die vorhandene 7z.exe verwenden (mit voller Pfadangabe).

Eine Beschreibung der Optionen findest Du zB hier: http://www.ojaehrling.de/Eisfair-Pakete/7zip/

Grüße
bastla
Mitglied: 59769
59769 14.05.2008 um 13:44:07 Uhr
Goto Top
Habs jetzt mal versucht mit 7-zip
Bekomme aber immer folgende Meldung:

___________

7-Zip 4.42 Copyright (c) 1999-2006 Igor Pavlov 2006-05-14

Processing archive: C:\Temp\normaldot\normal.zip

can not open output file [Content_Types].xml
can not open output file _rels\.rels
can not open output file word\_rels\document.xml.rels
can not open output file word\document.xml
can not open output file word\theme\theme1.xml
can not open output file word\settings.xml
can not open output file word\glossary\_rels\document.xml.rels
can not open output file word\_rels\customizations.xml.rels
can not open output file word\attachedToolbars.bin
can not open output file word\customizations.xml
can not open output file word\glossary\document.xml
can not open output file word\glossary\settings.xml
can not open output file word\glossary\webSettings.xml
can not open output file word\webSettings.xml
can not open output file word\fontTable.xml
can not open output file docProps\app.xml
can not open output file docProps\core.xml
can not open output file word\glossary\styles.xml
can not open output file word\glossary\fontTable.xml
can not open output file word\styles.xml

Everything is Ok

__________________

Und funktionieren tuts nicht...was mach ich falsch?
Mitglied: 59769
59769 14.05.2008 um 13:49:11 Uhr
Goto Top
Hab den Fehler gerade selbst gefunden...
mein Befehl war: C:\Programme\7-Zip\7z.exe x C:Temp\normaldot\normal.zip
befand mich aber nicht im C in der cmd. Muss zuerst auf C wechseln, dann klappts.
Vielen Dank für Eure Hilfe!