Link to home
Start Free TrialLog in
Avatar of Beauford
Beauford

asked on

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.
Avatar of pete_perry
pete_perry

What are you talking about?  What properties do you want to change?  Windows can change most things to do with a folder.
Avatar of Beauford

ASKER

(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,
Marthi

3.
ASKER CERTIFIED SOLUTION
Avatar of Frank Townsend
Frank Townsend
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good little program, but does not work on folders in 95/98 - only in NT.