Home Setting an NTFS junction point's created/modified datetime?
Reply: 0

Setting an NTFS junction point's created/modified datetime?

Jez
1#
Jez Published in 2017-11-14 23:49:15Z

With normal files and directories, it's relatively easy to set their created and modified datetime in .NET. Just create a DirectoryInfo for that path and set CreationTimeUtc and LastWriteTimeUtc to what you want. However, when you create a DirectoryInfo for a junction point and set these properties, it resolves the junction point to its target and sets the target instead. Oddly, when you read the properties, they in fact show the created/modified datetime of the junction point itself.

How can I set the junction point's datetimes?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.308228 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO