Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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:PathToSomeFiles*.*' -Exclude '*Exclude*'
python3 -m zipfile -c zipName.zip $fileInfo.FullName
 
PREVIOUS NEXT
Tagged: #Compress #multiple #directories #exclude #directory #Python #native #Windows
ADD COMMENT
Topic
Name
1+1 =