Category: IT Related

  • To Zip all files indvidually with in a folder

    Credit to http://greijer.blogspot.co.uk/2013/06/zip-all-files-in-folder-individually.html Create a powershell file (in my case compress1.ps1 containing the following: [CmdletBinding()] Param( [Parameter(Mandatory=$True,Position=1)] [string]$sourceFolderPath, [Parameter(Mandatory=$True,Position=2)] [string]$filePattern, [Parameter(Mandatory=$True,Position=3)] [string]$7zipExe ) $sourceFilePattern= $sourceFolderPath +”\” + $filepattern $files=get-childItem $sourceFilePattern $ErrorActionPreference = “Stop” if ($files) { foreach ($file in $files) { $zipFileName=$file.fullname+”.zip” $programArgs = “a”, “-tzip”, $zipFileName , $file.fullname write-host $programArgs Invoke-Command -ScriptBlock { &…

  • Hello world!

    Welcome to my website,   This is my 1st update…. please look forwards to lots more coming shortly.