Checking Version of a file

Hi,

I would like to know if it's possible to get the Version of a file (dll, exe..) directly from the desktop side.
I'm using OPENNETCF with DeviceFileExists to know if the file exists or not, but I did'nt find a way to get the version number.
I know that if I would I could write a device application and get the dll version number by using :
System.Reflection.Assembly;
But I would like to do everything on the desktop side and to not launch the dll.
But if it's not possible I could only write on the device side using the CF 1.1.

Thanks,



Answer this question

Checking Version of a file

  • Newbie2007

    ...
    Thank you very much for your answer !


  • er1067

    No, there's no way for you to do that without either running code on device or coping file to desktop and getting version using desktop's APIs.



  • Checking Version of a file