file-properties

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 know when was a certain website deployed. Is it possible to get it though reflection? I get the version like this, I'm looking for something similar: Assembly.GetExecutingAssembly().GetName().Version.ToString(); ie: I don't want to open the ph...

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 is storing metadata on the file somewhere. How can I access this information? ...

Creating an MS Office document-like file format to expose document properties

Our application's "documents" are single binary files. Our customers have asked if we can add MS Office-like document properties to our document files so that they are easier for users to manage. By easier to manage, I mean the ability for Windows Explorer to display common document properties in tooltips. My research seems to indicate...

Adding custom/new properties to any file regardless of type and extension e.g. setting 'Author' on a .txt file

I want the ability add properties and tags to a file (specifically ebook files and ebook related properties in Windows 7 but interested to go so for as many OSes as possible) For e.g. Example.txt or Example.doc or Example.epub should all store and carry properties like 'Author', 'Publication date', 'Tags' etc.. the properties should b...

How can I move my SVN working copy to Codeplex, maintainting file properties, but not history?

I am about to open-source one of my projects, and I want to move the current instance of it into CodePlex. How would I go about copying the current working directory into CodePlex's SVN, maintainting pile properties (like "svn:needs-lock" and "svn:mime-type"), without maintaining history? I don't want or need the history moved, I will ...

creating hidden files using .NET

How can I create or mark a file as hidden using .NET? ...

What is the difference between File.SetCreationTime() and File.SetCreationTimeUtc()

In particular, is there any difference between these two lines in terms of their outcomes: File.SetCreationTime("foo.txt", DateTime.UtcNow); File.SetCreationTimeUtc("foo.txt", DateTime.UtcNow); Perhaps File.SetCreationTimeUtc("foo.txt", DateTime.Now) is just another way of doing File.SetCreationTime("foo.txt", DateTime.UtcNow)? The s...