![]() Write-Host -BackgroundColor Black -ForegroundColor Red "$testDirectory is inaccessible! Exiting." Write-Host -BackgroundColor Black -ForegroundColor Green "$testDirectory is present, continuing." # Check a path to make sure it's there exit if not $compressDirectory = "D:\7ZConvert\CompressDirectory\" # Where do you want the new 7z files placed? $extractDirectory = "D:\7ZConvert\TempExtract\" # Temp directory for placing extacted files $convertDirectory = "D:\7ZConvert\ConvertDirectory\" Put your ZIP files into the convert directory.Run VS Code in Admin mode and install the 7Zip4Powershell module.Change the directories in the Variables section.Before using, make sure you do the following: ![]() The use case for me was having a massive amount of ZIP files in a directory that I wanted to convert to 7Z so that I could consolidate another directory that had similar files in 7Z format. This is a somewhat useful script for mass converting all ZIP files in a directory to 7Z.
0 Comments
Leave a Reply. |