我需要执行类似
7za e $file_path -oC:\Destination
在 powershell 脚本中,但用变量替换目标文件夹 (C:\Destination)。有些人喜欢:
7za e $file_path -o$output_path
这显然不起作用。前面的语句实际上创建了一个具有实际名称的文件夹$output_path
$output_path
如何才能做到这一点?
powershell 7-zip
7-zip ×1
powershell ×1