FileVersionInfo : FileVersionInfo : File Directory Stream C# Examples


C# Examples » File Directory Stream » FileVersionInfo »

 

FileVersionInfo









    
using  System;
using  System.Diagnostics;

static  class  MainClass
{
        static  void  Main(string[]  args)
        {

                FileVersionInfo  info  =  FileVersionInfo.GetVersionInfo("c:\\test.txt");

                //  Display  version  information.
                Console.WriteLine("Checking  File:  "  +  info.FileName);
                Console.WriteLine("File  Version:  "  +  info.FileVersion);
                Console.WriteLine("File  Description:  "  +  info.FileDescription);
                Console.WriteLine("Original  Filename:  "  +  info.OriginalFilename);
                Console.WriteLine("Legal  Copyright:  "  +  info.LegalCopyright);
                Console.WriteLine("InternalName:  "  +  info.InternalName);

        }
}
    
   
  
   



Output

Checking File: c:\test.txt
File Version:
File Description:
Original Filename:
Legal Copyright:
InternalName:


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» FileVersionInfo