private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog openfiledialog = new OpenFileDialog();
if (openfiledialog.ShowDialog() == DialogResult.OK)
{
FileInfo f = new FileInfo(openfiledialog.FileName);
MessageBox.Show("檔案建立日期" + f.CreationTime.ToString(), "FileInfo");
MessageBox.Show("檔案最後修改日期" + f.LastWriteTime.ToString(), "FileInfo");
}
}
沒有留言:
張貼留言