I was successful in creating a folder through code. further that But i was trying to set the write permission to the folder so that i can assign to whom i should allow to access the folder. I have placed a XML there but when i going to recreate the XML through it won't. Please help me. If sample code is being posted it will help me very much.