Results 1 to 13 of 13

Thread: How to get the version number of an exe on my PC?

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    How to get the version number of an exe on my PC?

    I can get the version number of an EXE, DLL or OCX on my PC using VB6, but I need this to be done in .NET.

    Any ideas?

    Woof

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    How about this:

    VB Code:
    1. Dim fp As FileVersionInfo = FileVersionInfo.GetVersionInfo("C:\woka\sucks.exe")
    2.         MessageBox.Show(fp.FileVersion)

  3. #3

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Nope.

    *slaps badger*

  5. #5

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Wokawidget

    Do do require that imposts line of code.

    WHAT?

    Maybe it's past your bed time

  7. #7

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Nope.

    I mean... yep!

    I don't have the Imports statement in this app.

  9. #9

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I just had black coffee, no sugar. I can't sleep.

  11. #11

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    I've had a few weeks of rough sleeping
    Decided to knock the weed on the head for a while...just to prove to myself, and others, that I ain't addicted.
    Apart from not feeling tired most of the time I have had no problem. Given up smoking cigs too after 5 years. Don't know what all the fuss is about

    Woof

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Wokawidget
    Given up smoking cigs too after 5 years.
    Please don't do this to yourself.

  13. #13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width