VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get absolute path of a file

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 absolute path of a file

Rate Get absolute path of a file




Public sub Form_Load()

Dim fso As New FileSystemObject
Dim strPath As String
strPath = fso.GetAbsolutePathName("D:\\\Test.txt")
Debug.Print strPath

End Sub

'This program prints absolute path of the Test.txt file in a debug window 


Download this snippet    Add to My Saved Code

Get absolute path of a file Comments

No comments have been posted about Get absolute path of a file. Why not be the first to post a comment about Get absolute path of a file.

Post your comment

Subject:
Message:
0/1000 characters