Results 1 to 3 of 3

Thread: file version?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    file version?

    is it possible in C# to get a version of a particular file? I am trying to do some versioning matching etc... going on but cannot seem to find a method that checks the current file for a version....

    any ideas?


    [edit]found it. Class: FileVersionInfo

    however, i cannot seem to tell it to check a file....
    [/edit]
    Last edited by Techno; Aug 7th, 2005 at 08:24 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: file version?

    The FileVersionInfo class has no public constructor, so you cannot create an instance using the New keyword. You use the Shared method GetVersionInfo to get an instance.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: file version?

    This might help.

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