I have a PowerShell script that I use to create distributions that copy compiled files from several places and fasten them to winrar. In the script, I go to the directory containing the folders that I want to run and execute this:
Invoke-Expression ($WinRAR + " a " + $zipPath + " " + $WinRARFilter + " " + $DistName + "-zip " + $WinRAROpts)
What actually accomplishes this:
E:\Progs\WinRar\WinRar.exe a C:\Users\Echilon\Documents\Coding\ResourceBlender-Express\trunk\dist\resourceblender-express_1.44-zip.zip -x*\.svn\* -x*\.svn -x\.svn resourceblender-express-zip -r -s -m5 -inul
However, none of the .svn directories are excluded from the zip file. This worked, and I have no idea why this is not, but I can not get it to exclude the necessary files.
The full script is on codeplex at http://resourceblender.codeplex.com/sourcecontrol/changeset/view/27742?projectName=resourceblender#45670 1 (at the bottom of the script)
Can someone with experience in PowerShell shed some light on this, please?
source
share