I am trying to extract bunches of 7z files.
I was able to get these two sets of Powershell script from other Stackoverflow posts, but none of them seem to work.
<code>$7ZipPath = '"C:Program Files7-Zip7z.exe"'
$zipFile = '"F:NHSFTPWH_20240803_1.7z"'
$zipFilePassword = "xYxYxYx"
$command = "& $7ZipPath e -oe: -y -tzip -p$zipFilePassword $zipFile"
iex $command
$7ZipPath = '"C:Program Files7-Zip7z.exe"'
$zipFile = '"F:NHSFTPWH_20240803_1.7z"'
$zipFilePassword = "xYxYxYx"
$command = "& $7ZipPath e -oW:ADMINISTRATION -y -tzip -p$zipFilePassword $zipFile"
iex $command
</code>
<code>$7ZipPath = '"C:Program Files7-Zip7z.exe"'
$zipFile = '"F:NHSFTPWH_20240803_1.7z"'
$zipFilePassword = "xYxYxYx"
$command = "& $7ZipPath e -oe: -y -tzip -p$zipFilePassword $zipFile"
iex $command
$7ZipPath = '"C:Program Files7-Zip7z.exe"'
$zipFile = '"F:NHSFTPWH_20240803_1.7z"'
$zipFilePassword = "xYxYxYx"
$command = "& $7ZipPath e -oW:ADMINISTRATION -y -tzip -p$zipFilePassword $zipFile"
iex $command
</code>
$7ZipPath = '"C:Program Files7-Zip7z.exe"'
$zipFile = '"F:NHSFTPWH_20240803_1.7z"'
$zipFilePassword = "xYxYxYx"
$command = "& $7ZipPath e -oe: -y -tzip -p$zipFilePassword $zipFile"
iex $command
$7ZipPath = '"C:Program Files7-Zip7z.exe"'
$zipFile = '"F:NHSFTPWH_20240803_1.7z"'
$zipFilePassword = "xYxYxYx"
$command = "& $7ZipPath e -oW:ADMINISTRATION -y -tzip -p$zipFilePassword $zipFile"
iex $command
What am I missing?
I am also trying to open multiple 7z files, not just one.
Do I express something like this?
<code>$zipFile = '"F:NHSFTP*.7z"'
</code>
<code>$zipFile = '"F:NHSFTP*.7z"'
</code>
$zipFile = '"F:NHSFTP*.7z"'