title: Comparing my folders with their back up folders to see if my backup solution is working
body: <p>Please bare in mind I am a complete novice when it comes to powershell.</p>
  <p>I am looking for a code that helps compare my folders with their back up folders, that are backed up with robocopy. I need to produce a notification for the user providing details.</p>
  <pre><code>#Create the balloon tip notification
  function ShowBalloonTipInfo 
  {
   
  [CmdletBinding()]
  param
  (
  [Parameter()]
  $Text,
   
  [Parameter()]
  $Title,
   
  #It must be 'None','Info','Warning','Error'
  $Icon = 'Info'
  )
   
  Add-Type -AssemblyName System.Windows.Forms
   
  #So your function would have to check whether there is already an icon that you can reuse. This is done by using a &quot;shared variable&quot;, which really is a variable that has &quot;script:&quot; scope.
  if ($script:balloonToolTip -eq $null)
  {
  #we will need to add the System.Windows.Forms assembly into our PowerShell session before we can make use of the NotifyIcon class.
  $script:balloonToolTip = New-Object System.Windows.Forms.NotifyIcon 
  }
   
  $path = Get-Process -id $pid | Select-Object -ExpandProperty Path
  $balloonToolTip.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($path)
  $balloonToolTip.BalloonTipIcon = $Icon
  $balloonToolTip.BalloonTipText = $Text
  $balloonToolTip.BalloonTipTitle = $Title
  $balloonToolTip.Visible = $true
   
  #I thought to display the tool tip for one seconds so i used 2000 milliseconds when I call ShowBalloonTip.
  $balloonToolTip.ShowBalloonTip(2000)
  
  }
  
  
  }
  </code></pre>
  <p>Thank you very much to @mhu for helping me fix the error message. I now get the correct balloon tip notification but it says there are 1414 files that are different between my documents and its mirror.</p>