Returns the base name of the last component in the path apart from extension name
Returns the base name of the last component in the path apart from extension name
Rate Returns the base name of the last component in the path apart from extension name
(1(1 Vote))
Public sub Form_Load()
Dim fso As New FileSystemObject
Dim strBaseName As String
strBaseName = fso.GetBaseName("D:\Test.txt")
Debug.Print strBaseName
End Sub
'This program prints Test in the debug window
Returns the base name of the last component in the path apart from extension name Comments
No comments yet — be the first to post one!
Post a Comment