file-properties

uwp StorageFile adding a custom property

三世轮回 提交于 2020-01-05 11:06:32
问题 In my uwp app I am getting Video files with KnownFolders.VideoLibrary . I am able to PreFetch videoProperties of the file and also some other properties. Now I actually want to tag the video files with some string data, and save that data so I can check that later on. For example I want to add them to Liked Videos so can I add a custom property on the storagefile which will remain saved every time I run the app. This will let me check whether a specific storagefile is liked or not. Currently

How can I get the BPM property of an MP3 file in a Windows Forms App

蹲街弑〆低调 提交于 2019-12-22 04:26:27
问题 I am trying to get the BPM property from an MP3 file: I can see how to do this in a Windows Store App as per this question: How to read Beats-per-minute tag of mp3 file in windows store apps C#? but can't see how to use Windows.Storage in a Windows Forms app. (If I understand it correctly it's because Windows.Storage is specific to UWP.) How can I read this in a Forms app? Happy to use a (hopefully free) library if there is nothing native. 回答1: You can use Windows' Scriptable Shell Objects

Delphi: How to SET(write) extended file properties?

纵然是瞬间 提交于 2019-12-21 02:44:19
问题 I would like to set properties as shown in Windows Explorer File Properties->Summary Tab (Authors, Title, Subject, etc). (In Windows 7 is the Details tab) I already know how to GET them using StgCreateStorageEx, The target file extensions are xls, xlsx, csv, txt and jpg files. OS: Windows 2003/2008/XP/Windows 7. Notice that this code will go a web service application and the server does not have Excel installed. Note:It seems to be that there is no information/sample code about how to SET

Is “Bit rate” property fixed in index 28?

泪湿孤枕 提交于 2019-12-13 14:24:15
问题 I am trying to read "Bit rate" property of audio files. I know how to get the value but the way I am doing it I don't think is the most efficient. Shell shell = new Shell32.Shell(); Folder objFolder = shell.NameSpace(path); for (int i = 0; i < short.MaxValue; i++) { string property = objFolder.GetDetailsOf(null, i); if (String.IsNullOrEmpty(property)) break; if (property.Equals("Bit rate")) { index = i; break; } } FolderItem item = objFolder.ParseName(fileName); string bitRateValue =

In C# how to add a new custom properties entry in File Properties dialog details tab

余生颓废 提交于 2019-12-12 17:22:59
问题 In my C# project, I want to create a new custom property for all my dlls and executables and want it to show in the details tab like shown here. 来源: https://stackoverflow.com/questions/37708257/in-c-sharp-how-to-add-a-new-custom-properties-entry-in-file-properties-dialog-de

Read extended image properties in c#

别说谁变了你拦得住时间么 提交于 2019-12-12 09:37:00
问题 I would like to find the height/width of an image on disk without opening it, if possible (for performance reasons). The Windows properties pane for images contains information like width, height, bit depth, etc., which leads me to believe that it is storing metadata on the file somewhere. How can I access this information? 回答1: There are some stackoverflow questions on how to read the EXIF information from images, such as: How to get the EXIF data from a file using C# 回答2: Use System.Drawing

How to show “properties window” of native file system's file/folder in java

牧云@^-^@ 提交于 2019-12-11 04:23:58
问题 I am using java 1.6 and my java desktop application run on three O.S Windows, Linux and MAC. Using my application, user can list files and folder of native file system in JTree . My requirement is user can able view a "property window" of file/folder according to native file system. Suppose if user in running my java desktop application on Window then if user right click on any file/folder and select "Properties" then this window can open - If in-case we can not show native file system's file

How Do I Programmatically Set a File Tag

こ雲淡風輕ζ 提交于 2019-12-10 19:12:16
问题 When using Windows Explorer to view files, I'm given the option to set a "tag", "category", or other attributes. For a JPEG a different set of attributes (including "tag") are options. I'd like to be able to set these programmatically. How do I programmatically set a file tag and other file attributes using Delphi (I have Delphi 2010 Pro)? 回答1: Tags in JPEG files are stored as IPTC keywords. There are a few libraries available for reading and writing those, if that's what you're asking for.

Changing the File Creation Date in C++ using windows.h in Windows 7

断了今生、忘了曾经 提交于 2019-12-10 09:33:06
问题 I have the following code: int main(int argc, char** argv) { onelog a; std::cout << "a new project"; //creates a file as varuntest.txt ofstream file("C:\\users\\Lenovo\\Documents\\varuntest.txt", ios::app); SYSTEMTIME thesystemtime; GetSystemTime(&thesystemtime); thesystemtime.wDay = 07;//changes the day thesystemtime.wMonth = 04;//changes the month thesystemtime.wYear = 2012;//changes the year //creation of a filetimestruct and convert our new systemtime FILETIME thefiletime;

How do I access “Details” (“Title”, “Subject”, etc.) of file properties in Perl or PowerShell script

為{幸葍}努か 提交于 2019-12-07 04:39:21
问题 If one looks at file properties in Windows Explorer, the "Details" tab, - for many filetypes (for example, tiff or jpeg images, Office documents, etc.) there is the "Description" section with fields like "Title", "Subject", "Tags", and "Comments". Is there a way to read/write these fields from Perl or a PowerShell script? 回答1: PowerShell has gone through some iterations, and this can now be achieved with a native command: Get-ItemProperty Example: Shows the current details of ntdll.dll file: