by Bhuwan Chand Joshi (69 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Returns the base name of the last component in the path apart from extension name
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
No comments have been posted about Returns the base name of the last component in the path apart from extension name. Why not be the first to post a comment about Returns the base name of the last component in the path apart from extension name.