VB.NET
'
Folder path
Const
STR_FLDR As String = "C:\timestamp\"
' 作成日時
Dim
datCreate As DateTime = System.IO.Directory.GetCreationTime(STR_FLDR)
' 更新日時
Dim
datMod As DateTime = System.IO.Directory.GetLastWriteTime(STR_FLDR)
' アクセス日時
Dim
datAcc As DateTime = System.IO.Directory.GetLastAccessTime(STR_FLDR)
C#
//
Folder path
const string
STR_FLDR = @"C:\timestamp\";
// 作成日時
DateTime
datCreate = System.IO.Directory.GetCreationTime(STR_FLDR);
// 更新日時
DateTime
datMod = System.IO.Directory.GetLastWriteTime(STR_FLDR);
// アクセス日時
DateTime
datAcc = System.IO.Directory.GetLastAccessTime(STR_FLDR);