Replace a file in zip archive RRS feed

  • Question

  • Hi,

    I need to write a PS-script that:

    1. Takes a MS Word document (.docx) file and renames it to <name>.zip
    2. Replaces the "image1.jpeg" file in <name>.zip/word/media/ with a new image file (with the same filename)
    3. Renames the file back to <name>.docx

    I've got points 1 and 3 covered, but point 2... How can I achieve this?

    Thanks for any help!

    Thursday, September 21, 2017 12:22 PM