shahrzad87
یک شنبه 24 مهر 1390, 15:32 عصر
سلام دوستان
معادل کد زیر تو asp.net چی میشه ؟
string output;
output = Path.GetDirectoryName(Application.ExecutablePath);
output = Path.Combine(output, "sounds");
output =Path.Combine(output,Path.GetFileName(txt_Name_Wav eSett.Text+".wav"));
File.Copy(txt_Path_WaveSett.Text, output, true);
کد زیر رو نوشتم ولی اشتباهه:
bannerfile = System.IO.Path.GetFullPath(file_banner_admin.Poste dFile.FileName);
rootPath = Path.Combine(rootPath, "image");
rootPath = Path.Combine(rootPath, Path.GetFileName(file_banner_admin.PostedFile.File Name));
File.Copy(bannerfile, rootPath, true);
معادل کد زیر تو asp.net چی میشه ؟
string output;
output = Path.GetDirectoryName(Application.ExecutablePath);
output = Path.Combine(output, "sounds");
output =Path.Combine(output,Path.GetFileName(txt_Name_Wav eSett.Text+".wav"));
File.Copy(txt_Path_WaveSett.Text, output, true);
کد زیر رو نوشتم ولی اشتباهه:
bannerfile = System.IO.Path.GetFullPath(file_banner_admin.Poste dFile.FileName);
rootPath = Path.Combine(rootPath, "image");
rootPath = Path.Combine(rootPath, Path.GetFileName(file_banner_admin.PostedFile.File Name));
File.Copy(bannerfile, rootPath, true);