Answers for "Compress multiple directories but exclude directory - Python zipfile(or anything native to Windows 2012+"

0

Compress multiple directories but exclude directory - Python zipfile(or anything native to Windows 2012+

#Try pairing the python command with Get-ChildItem. something like this:

$fileInfo = Get-ChildItem -Path 'C:\Path\To\Some\Files\*.*' -Exclude '*Exclude*'
python3 -m zipfile -c zipName.zip $fileInfo.FullName
Posted by: Guest on May-08-2022

Code answers related to "Compress multiple directories but exclude directory - Python zipfile(or anything native to Windows 2012+"

Python Answers by Framework

Browse Popular Code Answers by Language