Questions tagged [file-properties]

File properties include any of various attributes, elements, metadata, or settings for one or more files in a file system.

Overview

File properties include any of various attributes, elements, metadata, or settings for one or more files in a file system.

97 questions
42
votes
6 answers

How can I get the assembly last modified date?

I want to render (for internal debugging/info) the last modified date of an assembly, so I'll know when a certain website was deployed. Is it possible to get it through reflection? I get the version like…
juan
  • 80,295
  • 52
  • 162
  • 195
33
votes
8 answers

How to access a file's properties on Windows?

Last time I asked a similar question but that was about svn related versioning info. Now I am wondering how to query windows "File version" attribute about eg. a dll. I payed attention to wmi and win32file modules as well without success.
Davey
31
votes
5 answers

How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

In windows 2003 and windows XP you could right click on an assembly (.dll) go to properties, click on the version tab and then you would see 3 different version numbers: Assembly version, file version and product version. If you take that same file…
Mark
  • 5,223
  • 11
  • 51
  • 81
31
votes
5 answers

VS Code extension - get full path

I am writing a plugin for VS Code and I need to know the path of the file which is calling the extension, either if it was called from the editor context menu or explorer context menu or the user simply typed the extension command. function…
15
votes
3 answers

Determining if a file has a digital signature in c# without actually verifying the signature

Is there a simple way to check if a digital signature exists on a file without trying to verify the certificate it was signed with? I want to sign a long list of exe & dll files in a directory, but only files that haven't yet been signed. For…
ksun
  • 1,369
  • 2
  • 13
  • 21
14
votes
1 answer

Missing data in Windows file properties dialog when opened by ShellExecuteEx

I want to show the Windows file properties dialog for a file from my C++ code (on Windows 7, using VS 2012). I found the following code in this answer (which also contains a full MCVE). I also tried calling CoInitializeEx() first, as mentioned in…
honk
  • 9,137
  • 11
  • 75
  • 83
10
votes
2 answers

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

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…
Ben
  • 4,281
  • 8
  • 62
  • 103
10
votes
7 answers

Read extended image properties in c#

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…
Gabe Moothart
  • 31,211
  • 14
  • 77
  • 99
9
votes
2 answers

Getting specific file attributes

I've got a simple WCF service that lets clients/consumers upload image, audio or video files to it. After the upload, the service is supposed to analyze the file and somehow retrieve the following attributes: Image: width, height, date taken,…
rafale
  • 1,704
  • 6
  • 29
  • 43
8
votes
2 answers

Node JS - read file properties

I'm developing a Desktop Application with NWJS and I need to get the file properties of an .exe File. I've tried using the npm properties module https://github.com/gagle/node-properties, but I get an empty…
Gabriel Matusevich
  • 3,835
  • 10
  • 39
  • 58
7
votes
2 answers

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

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".…
Vasily A
  • 8,256
  • 10
  • 42
  • 76
6
votes
1 answer

Access Music File Metadata in Powershell

So over the years between getting copied from one PC/hard drive to the next, my music collection is in a bit of a mess, so I want to go through each one programmatically and update the file metadata in the below screenshot (from right click >…
Thomas Gass
  • 163
  • 1
  • 5
6
votes
2 answers

Is it possible to set/edit a file extended properties with Windows API Code Pack?

I'd like to know if it's possible to set/edit a file extended properties (Explorer: Right-click > Properties > Details) using the Windows API Code Pack. var shellFile = Microsoft.WindowsAPICodePack.Shell.ShellObject.FromParsingName(filePath); var…
Kaze
  • 101
  • 1
  • 6
5
votes
5 answers

How to edit mp3 file details (Delphi)

How can i edit mp3 file details , such as Description , Title , Subtitle , Rating , Artist , ... using delphi . is there any component to do this ? Thank you
Kermia
  • 4,171
  • 13
  • 64
  • 105
5
votes
1 answer

How to set and get values in Detail Properties of file? c#

I recently tried the Shell32.dll , which allowed me to get the values, but doesn't allow me to set them. Tried DSOFile.dll, it does allow me to read a very few values, but doesn't allow me to set them. Anyway i can do this?
jovanMeshkov
  • 757
  • 5
  • 12
  • 29
1
2 3 4 5 6 7