However, in .NET, I can't seem to call File.SetCreationTime on a file until I close the FileStream. I get the error "The process cannot access the file ... because it is being used by another process."
Unfortunately I can't close the file and then set the Creation Time because another process (a service running in the background) may snatch the file from the folder right after it's closed but before I have the chance to change its Creation Time.
Can you create the file in a temporary directory, set the file creation time and then call File.Move to move the file into the directory where the service can pick it up?
Bookmarks