Can windows' built-in zip compression be scripted?



Can windows' built-in zip compression be scripted?..

Answer / Akhtar Israr Ahmad

Yes, you can use the `zipfile` module in Python to work with Windows built-in zip compression programmatically.nHere's an example for compressing files:n``pythonnimport zipfilennwith zipfile.ZipFile('archive.zip', 'w', zipfile.ZIP_DEFLATED) as zf:n zf.write('<path-to-directory>', '<path-to-save-archive>')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Windows General Interview Questions

What is command key on laptop?

1 Answers  


What are the new features in windows 10 1903?

1 Answers  


Can you run windows 95 on a modern computer?

1 Answers  


Can I install gmail on windows 10?

1 Answers  


How do I remove a program from startup in windows 10?

1 Answers  


How do I delete windows system files?

1 Answers  


What is the maximum ram for windows 7?

1 Answers  


Can I turn off cortana?

1 Answers  


Is it ok to delete old windows updates?

1 Answers  


How do I start windows defender manually?

1 Answers  


Where is the windows recycle bin located?

1 Answers  


Is cleaning the registry necessary?

1 Answers  


Categories