Programatically setting last write time for My Documents & Desktop folders

kjholla

New member
Joined
Jan 11, 2009
Messages
1
Programming Experience
1-3
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?
 
Back
Top