Get drive name
Get drive name
Rate Get drive name
(2(2 Vote))
Public sub Form_Load()
Dim fso As New FileSystemObject
Dim strDriveName As String
strDriveName = fso.GetDriveName(fso.GetAbsolutePathName("D:\\\..Text1.txt"))
Debug.Print strDriveName
End Sub
'This program prints drive name from the file path you specified
Get drive name Comments
No comments yet — be the first to post one!
Post a Comment