25-10-21, 08:24 PM
(24-10-21, 06:44 PM)mmali127 كتب : السادة اعضاء المنتدى الكرام
اريد كود تغير المسار بقاعدة البيانات
من
E:\System\App\Debug\Mypicture\1001003.jpg
الى مسار جديد ساختارة من textbox
ولكن سينتهى بنفس ال \1001003.jpg
وليكن مثلا
F:\System\App\System2\Debug\Mypicture\1001003.jpg
تحياتى للجميع
string strPath = "c://myfiles//ref//file1.txt";
//function call to get the filename
filename = Path.GetFileName(strPath);
Output :
file1.txt
