Powershell, 7-zip, Password protected zip
I have a powershell script which runs a SQL query, dumps the results into a CSV, then converts it to Excel format. I then need to create a password protected zip file containing that .xls file. I...
View ArticlePowershell, 7-zip, Password protected zip
I just created a workaround... call the Powershell script from within a batch file; then use a regular command line to zip the .xls file with the password. Works for me. :)
View ArticlePowershell, 7-zip, Password protected zip
I've had wacky problems with launching external programs too. Sometime I found putting a & in front of everything works:& sz a c:\temp\testfile.zip c:\temp\*.xls -pTough.Pass-word
View ArticlePowershell, 7-zip, Password protected zip
try this, obviously amend the path in $process to either 32 or 64bit program files$process = "c:\Program Files (x86)\7-Zip\7z.exe" $destinationFile = "c:\temp\testfile.zip" $sourceFile =...
View ArticlePowershell, 7-zip, Password protected zip
I took it a step further and "pimped my script" #define variables $process = "c:\Program Files (x86)\7-Zip\7z.exe" $destinationFile = "c:\temp\testfile.zip" $sourceFile = "c:\temp\*.xls" $password =...
View ArticlePowershell, 7-zip, Password protected zip
Thanks so much for your posts lillystone! Very helpful :) I've created my own function based on your example at http:/ Opens a new...
View ArticlePowershell, 7-zip, Password protected zip
The ionic approach rocks:https://dotnetzip.codeplex.com/wikipage?title=PS-Examples Opens a new windowsupports passwords, other crypto methods, etc.
View Article