Community discussion forum

Programatically setting the LastWriteTime of My Documents and Desktop folders

  • 10 months ago
    I am building a .NET Program using VB.NET. The Program needs to update the Last Write Time of the My Documents Folder. However, whenever I do this using System.IO.Directory.SetLastWriteTimeUtc or System.IO.DirectoryInfo.LastWriteTimeUtc, I receive an error saying that the folder is locked by another process. This is not the case for any other folder; just for My Documents and Desktop. Any ideas how I can programatically change the Last Write Time for these folders using .NET?
    Post was edited on 11/01/2009 13:22:28 Report abuse

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback