17-10-12, 06:01 PM
كاتب الموضوع : Boutemine Oualid
السلام عليكم و رحمة الله و بركاتهفيبي .نت
كود :
Private Function GetFileName(ByVal Path As String) As String
Return New IO.FileInfo(Path).Name
End Function
كود :
// using System.IO;
string filenameWExt = Path.GetFileNameWithoutExtension(myPath);
string filename = Path.GetFileName(myPath);