Advertisement
Fhernd

InfoVersionamientoCsc.exe.cs

Jul 7th, 2015
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1. // OrtizOL - xCSw - http://ortizol.blogspot.com
  2.  
  3. using System;
  4. using System.Diagnostics;
  5.  
  6. namespace Receta.CSharp.R0505
  7. {
  8.     public class TamanioDirectorio
  9.     {
  10.         public static void Main()
  11.         {
  12.             Console.WriteLine(Environment.NewLine);
  13.            
  14.             // Especificamos la ruta del archivo a consultar, en este caso el
  15.             // el archivo `csc.exe`:
  16.             FileVersionInfo cscVerInfo = FileVersionInfo.GetVersionInfo(
  17.                                           @"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe");
  18.            
  19.             // Muestra en la salida estándar información
  20.             // de versionamiento:
  21.             Console.WriteLine("Nombre archivo: {0}.", cscVerInfo.FileName);
  22.             Console.WriteLine("Nombre producto: {0}.", cscVerInfo.ProductName);
  23.             Console.WriteLine("Versión de producto: {0}.", cscVerInfo.ProductVersion);
  24.             Console.WriteLine("Nombre compañía: {0}.", cscVerInfo.CompanyName);
  25.            
  26.             Console.WriteLine(Environment.NewLine);
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement