Create A Zip without the original directory located within
问题 I'm attempting to create a zip from from a directory that directly contains the contents of the source directory and not the source directory then the content, which will then be uploaded to Azure. So I have C:\temp\aFolder, create a zip from that using either the Write-Zip PSCXE write-zip c:\temp\test c:\temp\test2.zip or the Create-7zip function function create-7zip([String] $aDirectory, [String] $aZipfile){ [string]$pathToZipExe = "C:\Program Files (x86)\7-zip\7z.exe"; [Array]$arguments =