小编Jud*_*Way的帖子

使用Powershell在子文件夹中编辑zip文件内容

我正在尝试更新从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文件中的文件的下一步需要做什么?

xml powershell connection-string

2
推荐指数
3
解决办法
4588
查看次数

标签 统计

connection-string ×1

powershell ×1

xml ×1