المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Rename folder



C# Programming
05-20-2009, 12:13 AM
Scenario:
I have a few sub-folders and files in a folder named MYMAINFOLDER.
I read all those sub-folders and files and load them in a form, but if i want to change the MYMAINFOLDER name through windows explorer I got an exception saying that files are being used.


Thing I have tried out:

1). I get no exception if I were to change the subfolder and files names through windows exploere.But as soon as i try to rename the MYMAINFOLDER i get exceptions.