Hi all i have written the following code to separate the bin folder
string image_outputDir = System.Environment.CurrentDirectory;
string str = image_outputDir.Substring(0, image_outputDir.IndexOf("\\bin"));
objbll.SaveFileHeader(str);
MessageBox.Show("Inserted Successfully");
this.Close();
This is getting the output as saved but i am unable to find the required file can any one tell why..
I would like to save my file in a folder i.e created separately in the application any suggestions please
Loading
Dorababu MekaPosted Jul 3, 2010, 1:51 AM
Try also this
string r = Directory.GetCurrentDirectory();
r = Directory.GetParent(r).ToString();
r = Directory.GetParent(r).ToString();
DirectoryInfo df = new DirectoryInfo(r + @"\Your Folder\");
string df1 = Convert.ToString(df);
objbll.SaveFileHeader(str);
MessageBox.Show("Inserted Successfully");
this.Close();
VivekhPosted Jul 3, 2010, 12:23 AM
VivekhPosted Jul 3, 2010, 12:22 AM
I have written this to save my file
string image_outputDir = System.Environment.CurrentDirectory;
but it is getting the path of bin folder but i would like to save it in a folder named with some xyz in my application
Sam HobbsPosted Jul 2, 2010, 9:57 PM