有人能帮我修改下面的Powershell脚本来提取最新的zip文件(而不是文件名20230306),并提取文件夹中的内容吗?
powershell.exe -nologo -noprofile -command "& { $shell = New-Object -COM Shell.Application; $target = $shell.NameSpace('C:\TEMP\TXT_SOURCES'); $zip = $shell.NameSpace('C:\TEMP\TXT_SOURCES\20230306.zip'); $target.CopyHere($zip.Items(), 16); }"
1条答案
按热度按时间7dl7o3gd1#
你能解释一下你所做的尝试和你的意思吗?“extract the contents of the folder within”... is something zipped within your zip?
或许: