I have the same problem with fileName.txt and fileName.dat.
did you get any relevant unswer??
did you find any solution for this problem?
Printable View
See the answer with the green checkmark here:
http://stackoverflow.com/questions/5...ile-properties
Thanks,
It was very useful with c#.
I guss, because the dll was written in c++, it has to be easier to use it in c++, am i right?? (Please confirm)
Can you please tell me how can i do the same in c++??
(Code example wiil be received with pleasure )
With this code, you can access more than 255 properties of any file
BOLD is what I used in one app to retrive video info, the numbers 27,280,282 are Property ID, you can go through this with debugger and you will find property and it's ID.Code:Shell32.Shell shell = new Shell32.Shell();
Shell32.Folder objFolder;
objFolder = shell.NameSpace(Path.GetDirectoryName(FilePath));
foreach (Shell32.FolderItem2 item in objFolder.Items())
if (item.Name == Name + "." + FileFormat)
{
Length = objFolder.GetDetailsOf(item, 27);
Height = objFolder.GetDetailsOf(item, 280);
Width = objFolder.GetDetailsOf(item, 282);
}
first of all, thank you!
how can i do it with c++ ? - by using shell32.dll...
can you give me a code example in c++??
Split from a 6 year old thread into its own thread and moved to C++
Could you explain exactly what it is you want? Reading the post you've quoted, it sounds like the OP wanted to create some sort of extra field in a file to store the last-modified date. Is this what you want to do?