الرئيسية > comp > gb > file > basename 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
File.BaseName (gb)
Static Function BaseName ( Path As String ) As String

Returns the name of a file without its extension.

This example will display information about a file path selected by the user. It uses the methods File.Name, File.BaseName, File.Ext and File.Dir.

مثال

PUBLIC SUB ButtonDisplayPath_Click()
  IF Dialog.OpenFile() THEN RETURN
  PRINT "Full file path: " & Dialog.Path
  PRINT "File name (with extension): " & File.Name(Dialog.Path)
  PRINT "File name (without extension): " & File.BaseName(Dialog.Path)
  PRINT "File extension: " & File.Ext(Dialog.Path)
  PRINT "Directory of the file: " & File.Dir(Dialog.Path)
END