How to access the "Details" ("Title", "Subject", etc.) File properties in a Perl or PowerShell script

If you look at the file properties in Windows Explorer, the Details tab - for many types of files (for example, tiff or jpeg images, Office documents, etc.) there is a Description section with fields such as Title, Subject ", Tags, and Comments. Is there a way to read / write these fields from a Perl or PowerShell script?

+6
source share
2 answers

PowerShell went through several iterations, and now this can be achieved using its own command: Get-ItemProperty

Example: shows the current ntdll.dll file information:

Get-ItemProperty C:\Windows\System32\ntdll.dll | format-list 
+1
source

I wrote a post on how to access advanced properties while PowerShell was still in beta and was called Microsoft Command Shell (MSH). :-) I think this is still a valid approach.

+3
source

Source: https://habr.com/ru/post/926553/


All Articles