Hi,
Does anybody know how to create a password protected (encrypted) zip file with FME?
Preferably not using the systemcaller (not that protected...)
Any pythonistas out there with a ready example? @takashi @david_r :)
Cheers,
Itay
Hi,
Does anybody know how to create a password protected (encrypted) zip file with FME?
Preferably not using the systemcaller (not that protected...)
Any pythonistas out there with a ready example? @takashi @david_r :)
Cheers,
Itay
Best answer by itay
As expected python + 7z + awesome colleague (thx poosterveen!) provided the solution as a shutdown script:
import subprocess
OutputZipFile = str(FME_MacroValues['OutputZipFile'])
DirectoryToZip = str(FME_MacroValues['DirectoryToZip'])
ZipPass = str(FME_MacroValues['ZipPass'])
subprocess.call([r"C:\Program Files\7-Zip\7z.exe",'a', OutputZipFile , DirectoryToZip ,'-mx9','-p'+ZipPass], stdin=None, stdout=None, stderr=None, shell=False)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.