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?
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?