Page 1 of 1

DirDate and Symlinks

Posted: Fri Jun 20, 2014 4:56 pm
by opg70
Hello,

Is DirDate actually able to modify the datetime of Symlinks created with mklink (or any other method)?

Thanks!

Re: DirDate and Symlinks

Posted: Mon Jun 23, 2014 10:52 am
by DataMystic Support
If you use DirDate on a SymLink, it will change the date of the file/folder that that SymLinks points to.

What behaviour were you after?

Re: DirDate and Symlinks

Posted: Mon Jun 23, 2014 5:53 pm
by opg70
Hello,

I was hoping to change the date of the Symlink itself - as that would allow the users to have symlinks that have the same date as the original files - we want to use FSRM to archive outdated files to a different folder and replace them with Symlinks, but the Symlinks have the date of the operation not the date of the replaced files, thus the users cannot tell the filedates of the original files (as they can only see the symlinks).

Re: DirDate and Symlinks

Posted: Tue Jun 24, 2014 12:11 pm
by DataMystic Support
Hmm, I don't know of any way to do that yet. Sorry!

Re: DirDate and Symlinks

Posted: Tue Jun 24, 2014 7:36 pm
by opg70
That's not encouraging :( Is there really no way to change the date of a Symlink once it's been created (or to create it with a specific date, the same as of the original file)? I was really hoping DirDate could work, as it was mentioned that Symlinks are supported.

Thanks anyway for looking into it...

Re: DirDate and Symlinks

Posted: Tue Jun 24, 2014 9:58 pm
by DataMystic Support
Sorry - I suspect there is a way but would have to dig into Windows internals to find it.

Re: DirDate and Symlinks

Posted: Mon Jul 21, 2014 6:28 pm
by opg70
I guess it's very complicated then :(

If you manage to dig up something, I would be very interested.

Thanks!

Re: DirDate and Symlinks

Posted: Tue Aug 05, 2014 1:41 am
by opg70
Apparently it is possible:
http://serverfault.com/questions/614414 ... 981#615981

Now to see if it can be implemented...

Re: DirDate and Symlinks

Posted: Tue Aug 05, 2014 11:07 pm
by DataMystic Support
Hmmm - doesn't look very different to the code we have already. Leave it with me! I am sure I can whip this out in a few days.

Re: DirDate and Symlinks

Posted: Thu Aug 21, 2014 11:09 pm
by DataMystic Support
The v6.3 release can can change the date and time of symbolic links (symlinks)
otherwise known as file reparse points.

http://www.datamytic.com/dirdate2.exe