• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

Folder Question

Is there a utility, or a through Windows, that you can change the properties of Windows folders (i.e. changing the time and date). I have a utility that will work for files, but not for directories.
1 Solution
What are you talking about?  What properties do you want to change?  Windows can change most things to do with a folder.
BeaufordAuthor Commented:
(i.e. changing the time and date on one or more folders). This can not be done through Windows. I am looking for a 3rd party utility.
I don't know of a utility however, I can do it using a little program that Finds the directory and changes the properties.

What you need for this are the APIs
1. FindFirstFile(szDirectoryName, &FileData);
2. FindNextFile() - in case you need to recurse into the directory and change sub-directories too.
3. SetFileTime(...) - You can change Creation Time, last access time etc with this.
4. SetFileAttributes(...) - You can change some attributes using this API.

Hope this helps,

Since I came over from the unix world, this "touched" me in my program tester setup.
Goto home.worldonline.dk/~ninotech and download the free program date edit 2.0.  On build 2072 it workes for folders just fine.  
BeaufordAuthor Commented:
Good little program, but does not work on folders in 95/98 - only in NT.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now