using System.IO; FileInfo file=new FileInfo("打开文件的路径");string creattime=file.CreationTime.ToString(); //创建时间 .....都是通过file的属性获得打开的文件的属性