This script takes all files in each sub-folder (U***) under the target folder and archives it in a zip file named according to the relevant sub-folder (U***.zip). This zip archive does not include the sub-folder, so when I open the zip archive I can see directly the list of files.
I need to modify it so that the zip achive contains also the sub-folder and then the files, ie U***.zip -> U***/files.
Thank you for taking the time kvprasoon, but I do not learn to script in PowerShell, I’m not a programmer, I search for someone who could tell me exactly what to change in my script to get the requested result.
Myself is also not a programmer, Many of the PowerShell community members are also not programmers, majority of the learnings we had are from the requirements we had at work.
If you feel PowerShell is gonna make your work better and fast, you should definitely take time to learn it. If you work with Windows systems, PowerShell is knowledge is a must. Once you are around, you will automatically learn the scripting part of it.
Don Jones’s “Learn PowerShell in a month of Lunches” is a great book to start with and Is highly recommended.
Thanks all of you for your effort, but I already have the desired solution. It was just about adding new parameters [pre]0, $true[/pre] on the line 19.