Parsi Coders
سورس بدست اورن مشخصات فایل - نسخه قابل چاپ

+- Parsi Coders (http://parsicoders.com)
+-- انجمن: Software Development Programming (http://parsicoders.com/forumdisplay.php?fid=37)
+--- انجمن: C# Programming (http://parsicoders.com/forumdisplay.php?fid=55)
+--- موضوع: سورس بدست اورن مشخصات فایل (/showthread.php?tid=1119)



سورس بدست اورن مشخصات فایل - Amin_Mansouri - 10-18-2011

کد:
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;
    }