Solved

Behavior of dirdate -dirfix

Posted on 2013-12-14
14
377 Views
Last Modified: 2014-01-13
Recently an Expert introduced me to a utility called dirdate, which helps to correct time stamp errors.  When dirdate -dirfix is applied to a folder, the folder's creation date set to the oldest modified date of any file contained within.  The folder's modified date is set to the newest modified date of any file within.  My question is:  wouldn't it make sense to set the folder's creation date to the oldest creation date of a contained file, instead of the oldest modified date of a contained file?  If so, is there a method for accomplishing that?
0
Comment
Question by:ddantes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
14 Comments
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39720043
Aloha David,

> wouldn't it make sense to set the folder's creation date to the oldest creation date of a contained file

That's exactly what DirDate does. Here's a verbatim quote from its readme file:

-DIRFIX   Set the folder create date to oldest file, modify date to newest file

Regards, Joe
0
 

Author Comment

by:ddantes
ID: 39720283
Hi Joe:  Glad to hear from you.  Yes, it sets the create date to the oldest file.  But not to the "create date" of the oldest file.  Instead, it uses the "modify date" of the oldest file.  That is the reason for my question.
0
 
LVL 55

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 earned 250 total points
ID: 39720363
Ah, that's a bug in DirDate. I already reported it to the DataMystic folks...I have a direct pipe into a high-level person there. But you should report it, too, via their standard support mechanism, which is either sending an email to <support@datamystic.com> or filling out this form:
http://www.datamystic.com/support.html?application=DirDate

I've had great results in the past with very fast turn-around from them on fixing bugs...and even adding new features. But keep in mind that they're in the Melbourne, Australia time zone. Regards, Joe
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:ddantes
ID: 39720395
Done!   Thank you for your help, and Happy Holidays!
0
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39720399
Please post back here when you hear from the DirDate folks. I will do the same. Happy Holidays to you, too!
0
 

Author Comment

by:ddantes
ID: 39720667
Simon, from DataMystic, says that the feature I am requesting was not the original intent, but it would be an improvement.  He plans to add it to a new release, expected to be available by early January.
0
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39720793
That's excellent news! I received the same "next release" comment, and it wasn't a "maybe"...it was a "we will". But I didn't get a time frame, so great to know that it's early next month, just a few weeks away! Thanks for the update. Regards, Joe
0
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39722962
Hi David,
Wanted to let you know that I just got an email from Simon at DataMystic that says, "Early Jan. Let me know if I can help further." So at least we're both getting the same story. :)   Aloha, Joe
0
 

Author Comment

by:ddantes
ID: 39722976
Good news.
0
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39722988
Interesting how nimble a small company can be. Imagine how long it would take for a large software company to respond to a request like this, whether bug or feature.
0
 

Author Comment

by:ddantes
ID: 39722998
Sad, but true...
0
 

Author Comment

by:ddantes
ID: 39762863
DirDate 6.1 has been released, with the following note:  

DIRFIX mode now sets folder creation date to earlier creation
of any entry.
0
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39762906
Very nice! I had not seen the 6.1 announcement, so thanks for the heads-up. I'm amazed at the company's rapid response. Great stuff! Regards, Joe
0
 
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39778379
Hi David,
Just a quick note to let you know of a bug in DirDate's context menu [DirDate fix folder dates]. The bug wasn't introduced in 6.1, but testing that new release brought it to my attention (the bug has probably been around for a while). When you right-click on a folder in Windows Explorer or Total Commander (or any file manager) and select [DirDate fix folder dates], the registry entry is sending this command:

"C:\Program Files\DataMystic\DirDate\DirDate.exe" -r -DIRFIX "%1"

The problem is that Windows sends the folder name in the %1 variable without a backslash. This does not work in DirDate with the -DIRFIX option, which requires a backslash on the folder name. I reported it to Simon (along with two suggestions on how to fix it) and he wrote back, "will fix for next release." I don't know which suggestion he'll implement – one is better than the other (more general), but harder to do.

In the meantime, if you'd like to fix it on your own (with the simple, less general fix) and are comfortable with changing the registry, find this key:

HKEY_CLASSES_ROOT\Directory\shell\DirDate\command

and change its value to:

"C:\Program Files\DataMystic\DirDate\DirDate.exe" -r -DIRFIX "%1\"

In other words, simply add the missing backslash after %1. I did this and it now works fine. This bug is probably not affecting you, since your usage of DirDate -DIRFIX is from the command line, so you no doubt have included the backslash (or it wouldn't be working for you), but I figured I'd let you know, anyway. Regards, Joe
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question