"djc" wrote:
>using batch files is often cleaner and simpler than using VB with WSH. For a
>task I am currently doing I need to programatically obtain the file version
>of a dll file. In WSH this is done via the file system object's
>GetFileVersion() method. This version is only on dll and other executibles.
>For example is can be somthing like 1.08.234. Can I get this attribute from
>the command prompt? If so my script could be much simpler.
>
>thanks
>
In the w2k reskit there is a filever.exe. You may download it here:
URL:
http://www.dynawell.com/reskit/micro...00/filever.zip
Sample output on itself once complete and once filtered to the version:
==screen-copy=========================================================
C:\test>filever x:filever.exe /B
--a-- W32i APP ENU 5.0.2134.1 shp 13,584 11-30-1999 x:\filever.exe
C:\test>for /F "tokens=5" %A in ('filever x:filever.exe') do @echo/%A
5.0.2134.1
C:\test>
==screen-copy=========================================================
HTH
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm