know if .lib is static or import
Use the lib command. If it's static, lib will show you a pile of .obj files inside. Not so if it's am implib.
lib /list foo.lib
will do it.
powershell script
Get-ChildItem "D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\Debug_test\" -Filter *.lib |
Foreach-Object {
& "D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\lib.exe" $_.FullName >> 1.txt
}