R
Ronald S. Cook
Right-click on a file (e.g. a .wmv file) in Windows Explorer and there's the
"General" tab with Date Created, Attributes (i.e. whether the file is read
only or and.or hidden), and other properties. I can get at these values
programatically via the System.IO namespace and the FileInfo method:
FileInfo file = new FileInfo(@"C:\Data\MyFile.wmv");
Response.Write("Location :" + file.FullName + "<BR/>" +
"Size :" + file.Length + "<BR/>" +
"Created :" + file.CreationTime + "<BR/>" +
"Modified :" + file.LastWriteTime + "<BR/>" +
"Accessed :" + file.LastAccessTime + "<BR/>" +
"Attributes :" + file.Attributes + "<BR/>" +
"Extension :" + file.Extension + "<BR>");
But (on many files when you right-click), there is also a "Summary" tab with
Title, Subject, Keywords, Comments, etc. How can I read these values
programatically?
Thanks,
Ron
"General" tab with Date Created, Attributes (i.e. whether the file is read
only or and.or hidden), and other properties. I can get at these values
programatically via the System.IO namespace and the FileInfo method:
FileInfo file = new FileInfo(@"C:\Data\MyFile.wmv");
Response.Write("Location :" + file.FullName + "<BR/>" +
"Size :" + file.Length + "<BR/>" +
"Created :" + file.CreationTime + "<BR/>" +
"Modified :" + file.LastWriteTime + "<BR/>" +
"Accessed :" + file.LastAccessTime + "<BR/>" +
"Attributes :" + file.Attributes + "<BR/>" +
"Extension :" + file.Extension + "<BR>");
But (on many files when you right-click), there is also a "Summary" tab with
Title, Subject, Keywords, Comments, etc. How can I read these values
programatically?
Thanks,
Ron