<p>When I look at a directory in Windows Explorer, I can see a ProductName and ProductVersion property for the DLL's in that directory.</p>

<p>I need to export this DLL list with ProductName and ProductVersion into a text file.</p>

<p>If I do <code>c:\&gt;dir *.dll &gt; test.log</code>, the test.log does not have the ProductName and ProductVersion.</p>

<p>Could someone help me to get these properties exported to a file along with the filename?</p>

<p>Even if it is a freeware tool or some other <code>dir</code> switch, that will be useful.</p>

Using VBScript you could do the following:
```
```
Set objShell = CreateObject ("Shell.Application")
Set objFolder = objShell.Namespace ("C:\Scripts")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim arrHeaders(40)

For i = 0 to 40
    arrHeaders(i) = objFolder.GetDetailsOf (objFolder.Items, i)
Next

For Each strFileName in objFolder.Items
    For i = 0 to 40
        Wscript.echo arrHeaders(i) & ": " & objFolder.GetDetailsOf (strFileName, i) 
    Next
    Wscript.Echo
Next
```
```