dynamically check version of exe file in FTP - VB.Net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • remya1000
    New Member
    • Apr 2007
    • 115

    dynamically check version of exe file in FTP - VB.Net

    to find version of an exe, i use this code
    Code:
    Dim FileProperties As FileVersionInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath)
    Textbox1.Text = FileProperties.FileVersion
    How come we find a version of an exe that's uploaded in FTP? i need the version of an exe that's already there in FTP. i know the path where the exe file is saved in FTP.

    if you have any idea, please help me...

    Thanks in advance...
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    For as far as I know, you can check the FileInfo for the file on the FTP. Make a connection to the FTP, navigate to the file and create a new FileInfo. Then, you can check the FileVersion.

    Mind you, I never tried this, so I might be completely wrong. Just let me know what happens.

    Steven

    Comment

    • remya1000
      New Member
      • Apr 2007
      • 115

      #3
      the exe name is getting too big. so instead of adding the version number in exe name, i will create a text file in that folder that contains verison number. so i can check this .txt file name to get version number.

      for example: the text file name is going to be Ver.1.0.0.34.tx t. 1.0.0.34 is version number, that keeps on change.

      is there a way i can check the file that starts with "Ver" and ends with ".txt". so i can find the version number.

      how come i check the file name from FTP?

      if you have any idea, please let me know.

      Thanks in advance...

      Comment

      • remya1000
        New Member
        • Apr 2007
        • 115

        #4
        Thanks MrMancunian for your help...

        as u said created text file in FTP and checked file version from that.

        Thank you so much.

        Comment

        • MrMancunian
          Recognized Expert Contributor
          • Jul 2008
          • 569

          #5
          That's not what I said, but I won't bother you if it's working this way ;-)

          Steven

          Comment

          Working...