VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get drive name

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)

Get drive name

Rate Get drive name




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 


Download this snippet    Add to My Saved Code

Get drive name Comments

No comments have been posted about Get drive name. Why not be the first to post a comment about Get drive name.

Post your comment

Subject:
Message:
0/1000 characters