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
2
votes
0 answers

Python: save pickle adding details of the generating script

I want to be able to retrieve the location of the script that created a certain pickle file. This happens especially if I work on a project, then stop, and after some time I need to come back. In these cases, wouldn't it be easier if we could…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
2
votes
2 answers

Batch: search for files with certain extension, owner, fullpath and last write access and output in CSV

I'm trying to create a CSV with fullpath\filename, file owner and last write access (modification date) of all txt and html files from all hard drives of a data server. Here's what I got so far: set pgm=%~n0 set log=%~dpn0.log set…
Clam
  • 75
  • 2
  • 11
2
votes
2 answers

How to add a property to a PNG file

I have a PNG file to which I want to add the properties Pixels per unit, X axis Pixels per unit, Y axis Unit specifier: meters These properties are explained in the PNG specification: http://www.w3.org/TR/PNG-Chunks.html I have programmatically…
Sanju
  • 903
  • 5
  • 17
  • 32
2
votes
3 answers

How to read 'Extended' MS Word file tags without Office.Interop?

I have .docx file with custom properties specified only for MS Office files. If I tried to open same file in computer without installed MS office then there is no Tags property in file details tab. I need to read Tags in my c# code. I tried this…
Vadim Martynov
  • 8,602
  • 5
  • 31
  • 43
2
votes
4 answers

creating hidden files using .NET

How can I create or mark a file as hidden using .NET?
pvaju896
  • 1,397
  • 6
  • 25
  • 46
1
vote
2 answers

C# Move video files into folders based on their video frame size.

I have a hard drives dedicated to videos, and I wanted to write a program that would move all my video files into folders based on their video playback size. I was thinking about having it organized like…
Throdne
  • 619
  • 2
  • 9
  • 27
1
vote
1 answer

Extracting the createdDateTime and LastModifiedDateTime of a file using inputstream of the file. I'm unable to get it using Metadata class from Tika

I have some files which will be either email attachments or zip attachments. which means that I have stream of the file instead of file or its actual path. I need to get the created date time and last modified date time of the file using the…
1
vote
2 answers

How to add commit hash to details of an executable file

One of my previous employers added the GIT hash of the current commit to the "Details" tab of the file properties of the executable, once it was built. As I found here, this command gives the current commit hash: git rev-parse --short HEAD But does…
Dominique
  • 16,450
  • 15
  • 56
  • 112
1
vote
2 answers

Accessing the "Date Last Saved" using PowerShell

I am attempting to access the Date Last Saved of an xls file using PowerShell. It is in the details page and is more of a hidden attribute of the file. Pic attached for reference. EDIT: Thank you for the help. Both solutions work but I am in a…
1
vote
1 answer

How to update the Modified Date of folders with a batch file?

copy /b Source+,, updates a file's Modified Date. Is there a method for folders?
SilverLink
  • 124
  • 2
  • 15
1
vote
1 answer

How to extract file properties of multiple XML files and combine them with the XML extracted data (Using R)

I am fairly new to R and need some help to (extract and) combine file names and properties with data extracted from multiple xml files (about 200) which will should then be converted into a dataframe. I am using the following script to select the…
Pharny
  • 17
  • 3
1
vote
2 answers

C# SharePoint CSOM change file properties after upload

I have searched and found several examples of how to do this, but I can't make them work - well part of it doesn't work. I can perform the file upload, but the following attempt to change properties fail. I'm attempting to upload a file from a…
Aidal
  • 799
  • 4
  • 8
  • 33
1
vote
2 answers

Is there a way to change windows folder thumbnails with Python?

I have hundreds of folders of images on my HDD, and with very few exceptions they each have a cover image that I want to use as their respective folder thumbnails, or at least a memorable first image. Unfortunately, Windows 10 defaults to using two…
1
vote
2 answers

xml sdk 2.0 to read Office 10 file details/properties

I need to read file details, especially, Authors, Title, Subject, from new Office files (.docx, .xlsx). I found this article from MS, which also has some methods - http://msdn.microsoft.com/en-us/library/bb739835%28v=office.12%29.aspx But I can…
andree
  • 3,084
  • 9
  • 34
  • 42
1
vote
1 answer

Add custom file extended properties

After adding metadata property handler for .svg extension with this tool, I am able to add keywords to .svg files via Windows Explorer. I am now searching a way to add keywords via a C# application. I found this solution but…
alex
  • 5,661
  • 6
  • 33
  • 54