Parsi Coders

نسخه‌ی کامل: سورس بدست اورن مشخصات فایل
شما در حال مشاهده نسخه آرشیو هستید. برای مشاهده نسخه کامل کلیک کنید.
کد:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;






namespace WindowsApplication5
{
  public partial class Form1 : Form
  {

    public string AllFileInfo(string FilePath)
    {

     if (FilePath.Length < 1)
     {
     MessageBox.Show("Please enter the path to the executable file");
     return null;
     }


    FileVersionInfo FileInfo = FileVersionInfo.GetVersionInfo(@FilePath);
      
string ThisisAll;
string FileName = FileInfo.FileName;
string CompName = FileInfo.CompanyName;
string FileDesc = FileInfo.FileDescription;
string FileVer = FileInfo.FileVersion;
string ProVer = FileInfo.ProductVersion;
string Lang = FileInfo.Language;

      

ThisisAll = "FileName: " + FileName + "\n" + "Company Name: " + CompName + "\n" + "FileDescription: " + FileDesc + "\n" + "FileVersion: " + FileVer + "\n" + "ProductVersion: "+ProVer + "\n" + "Language: " + Lang;

return ThisisAll;
    }