I get this error intermittently in error reports submitted from users. Can't reproduce it myself. Most seem to be running XP so it's not a Vista issue.
My C# code creates a temporary folder then copies files to it. At the end it removes the Temp from the name and replaces it with a date stamped name:
backupPath = destFolder + "\\Backup_" + String.Format(" {0:yyyyMMdd_HHm mss}", DateTime.Now);
Directory.Move( destFolder + "\\Temp_Backup" ,backupPath);
The Move operation throws an exception: Access to the path xxx is denied.
where xxx is the temp folder path (i.e. destFolder+"\\T emp_Backup);
Note that this is the folder into which I had just successfully copied one or more files. Note also that I'm not moving the folder but just renaming it.
My C# code creates a temporary folder then copies files to it. At the end it removes the Temp from the name and replaces it with a date stamped name:
backupPath = destFolder + "\\Backup_" + String.Format(" {0:yyyyMMdd_HHm mss}", DateTime.Now);
Directory.Move( destFolder + "\\Temp_Backup" ,backupPath);
The Move operation throws an exception: Access to the path xxx is denied.
where xxx is the temp folder path (i.e. destFolder+"\\T emp_Backup);
Note that this is the folder into which I had just successfully copied one or more files. Note also that I'm not moving the folder but just renaming it.
Comment