how to get file's details
-
Hello friends, I have an application that reads file properties and stores them in an Access database. It reads the following properties: size, file's icon (if it has), dates (modified, accessed and created), file attributes (read only etc...), artist name, album title, album year, trackNumber durtion, genre, bitRate, frameRate, sampleRate, height, width, owner, author, title, subject, category, pages, comments,copyright, company, description, major version, minor version, revision number, product name, major product version, minor product version, product revision. Any advice on how to do that. I decided to use the GetDetailsOf method, but it was only when I started coding, that I realized that the GetDetailsOf method returns strings, and that would mean that I have to manually parse the returned data to extract the required info. Also, I want to keep unmanaged code inside my app. to a minimum. Problem 2: The same app. has a Windows Explorer like interface and has pretty much the same purpose. I'm using a ListView and a TreeView control to provide the same UI as Explorer. Now I need a way to preview the file that the user has selected, much like Windows Explorer. The file can be an Image file or an audio/video file. The mechanism I'm using now for this feature is a UserControl which has a Preview() method in which I determine the type of the file based on extension and then add a proper control to my UserControl. The real problem is how to preview a video. I'm currently using the Microsoft.DirectX.AudioVideoPlayback.Video class to provide this functionality. But it has many annoyances. 1. It doesn't have a parameterless const. So I cannot simply create an instance of the class without providing it a video file path. 2. Every time a new instance is created, it pops up a new window the size of the video, and to position it inside my controls bound, I have to assign to its Owner property. To do that, I need a class Instance and that again means a new window. Please suggest.