Good afternoon,
I would like to be able to get the file version and assembly version of all DLL's within a directory and all subs. I'm new to programming and I can't figure out how to make this loop work.
I have this for the assembly version (taken of a forum)
$strPath = 'c:\ADMLibrary.dll'
$Assembly = [Reflection.Assembly]::Loadfile($strPath)
$AssemblyName = $Assembly.GetName()
$Assemblyversion = $AssemblyName.version
And this as well.
$file = get-childitem -recurse | %{ $_.VersionInfo }
My question is how can make a loop of this so that I can return the assembly version of all files within a directory?
Thanks in advance,
Tim