$files = get-childitem $args -recurse -include *.dll,*.exe
 if($files -eq $null)
  {
   Write-Host "No Exe or dll files present in the folder";
  }
 else
  {
   foreach ($i in $files)
    {
     $ver = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($i).FileVersion
     if($ver -eq $null)
      {
       $i.FullName | Out-File NoVersion.txt -append
       }
    else
     {
       "{0}`t{1}"-f $i.FullName, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($i).FileVersion | out-file Version.xls -append
     }
   }
  }