DirDate and Symlinks
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
DirDate and Symlinks
Hello,
Is DirDate actually able to modify the datetime of Symlinks created with mklink (or any other method)?
Thanks!
Is DirDate actually able to modify the datetime of Symlinks created with mklink (or any other method)?
Thanks!
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: DirDate and Symlinks
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?
What behaviour were you after?
Re: DirDate and Symlinks
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).
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).
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: DirDate and Symlinks
Hmm, I don't know of any way to do that yet. Sorry!
Re: DirDate and Symlinks
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...
Thanks anyway for looking into it...
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: DirDate and Symlinks
Sorry - I suspect there is a way but would have to dig into Windows internals to find it.
Re: DirDate and Symlinks
I guess it's very complicated then
If you manage to dig up something, I would be very interested.
Thanks!
If you manage to dig up something, I would be very interested.
Thanks!
Re: DirDate and Symlinks
Apparently it is possible:
http://serverfault.com/questions/614414 ... 981#615981
Now to see if it can be implemented...
http://serverfault.com/questions/614414 ... 981#615981
Now to see if it can be implemented...
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: DirDate and Symlinks
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.
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: DirDate and Symlinks
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
otherwise known as file reparse points.
http://www.datamytic.com/dirdate2.exe