Windows Develop Bookmark and Share   
 index > Windows Forms General > How to prevent "this Folder or File is accessed by another process" error?
 

How to prevent "this Folder or File is accessed by another process" error?

Hi,

When i try to execute the following code,


Directory.SetCreationTime(destinationPath, Directory.GetCreationTime(sourcePath));

at the same time i opened 'destinationPath' in WindowsExplorer.

i am getting "this Folder or File is accessed by another process" error.

How to prevent this error?
MadhuSudhan Reddy Pulimi  Tuesday, March 04, 2008 4:20 PM
You can't change a file when the file is opened in another process.
Ralf de Kleine XCESS  Tuesday, March 04, 2008 5:20 PM
You can't change a file when the file is opened in another process.
Ralf de Kleine XCESS  Tuesday, March 04, 2008 5:20 PM

You can use google to search for other answers

Custom Search

More Threads

• Resizing problem
• How to get total Days of a month
• www.microsoft.com/practices/enterpriselibrary/08-31-2004/readonlyconfigurationsectiondata is not found in schema
• TrueType Fonts & non TrueType Fonts
• find controls by name
• tool to find users,groups and respective roles(or rights)assigned to them
• DataGridView.CellContentClick question
• How do I prevent child form data from being passed back to parent?
• Progress Bar
• How do I position text when printing from VS2005?