Hi plz help me.....
I need to create folder and save my database with in the folder each time when an account is created.For every account there should be a folder by name which is the code that i am giving in account details.When the user clicks the save button ,need to create the folder and save databse in to it....
its urgent....plz help me...............
Loading

Kirtan PatelRank #292 · 8.6K reputationPosted Sep 15, 2009, 5:09 AM EDT
dont forget to matrk " Do you like answer" please it will give me some credits :)
private void button1_Click(object sender, EventArgs e)
{
Directory.CreateDirectory(@"E:\YourDirectoryName");
}
Roei BarRank #1,271 · 1.4K reputationPosted Sep 15, 2009, 3:17 AM EDT
why dont you just save an XML file with the user Details to folder, or save all details to db and thats it??
Roei BarRank #1,271 · 1.4K reputationPosted Sep 15, 2009, 3:19 AM EDT
// Specify the directory you want to manipulate. string path = @"c:\MyDir"; try { // Determine whether the directory exists. if (Directory.Exists(path)) { Console.WriteLine("That path exists already."); return; } // Try to create the directory. DirectoryInfo di = Directory.CreateDirectory(path); Console.WriteLine("The directory was created successfully at {0}.", Directory.GetCreationTime(path)); } catch (Exception e) { Console.WriteLine("The process failed: {0}", e.ToString()); } finally {}Resmy Ravi74 reputationPosted Sep 15, 2009, 9:13 PM EDT
I am creating an accounting package.In that when a company is created,i need to maintain a separate database.For each company there should be separate databse.So when the user creats a company,a separate folder should be created and the copy of the database should be saved in that folder.The folder name should be the regno of the company....
It is my problem.....Plz help me.....how to save the database....
Kirtan PatelRank #292 · 8.6K reputationPosted Sep 16, 2009, 1:53 AM EDT