Web Analytics Made Easy -
StatCounter fso.GetFileVersion size limit? - CodingForum


No announcement yet.

fso.GetFileVersion size limit?

  • Filter
  • Time
  • Show
Clear All
new posts

  • fso.GetFileVersion size limit?


    Got a bit of a weird problem.

    We are using standard fso.GetFileVersion code in order to get the version number of the latest dll used to create some documents.

    We normally loop through the files to get the latest version (and this works fine on all the DLL's). However in the example below I am hard-coding the file name. The error occurs either way.

    strName = "Docs_9_12_3_0.dll"

    Set fso = CreateObject("Scripting.FileSystemObject")

    version_no = fso.GetFileVersion("c:\Inetpub\wwwroot\location\DLLs\" & strName & "")

    Response.Write version_no


    The code works perfectly on any file under 1.8 MB, however as soon as the file is over that size I am unable to get the version information.

    This problem only occurs on our live server, on our test server the same code (pointing at the same files) works perfectly.

    The two servers are using the same version on windows with all the same service packs.

    I have checjed the IIS settings and they seem identical, although I am not really sure what I am looking for.

    Does anyone has any suggestions on how to resolve this?