我正在尝试更新从Excel文档创建的zip文件的内容。我想替换\ zipfile \ xl \ connections.xml的某些内容。
此部分脚本将列出zip文件的内容:
$shell_app = new-object -com shell.application
$zip = “$destination\exceltemplates\Templates\Template1.xlsx.zip”
$zip_file=$shell_app.NameSpace($zip)
$zip_file.Items() | Select Path
Run Code Online (Sandbox Code Playgroud)
但是我尝试过的每种更新方法都产生了一个错误。访问和更新zip文件中的文件的下一步需要做什么?