VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Return only file name without path

by Thesis (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 10th May 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Return only file name without path

Rate Return only file name without path



WithOutPath = WithPath
Do Until InStr(WithOutPath, "\") = 0
AllLen = Len(WithOutPath)
Where = InStr(WithOutPath, "\")
WithOutPath = Right(WithOutPath, AllLen - Where)
Loop
FileName = WithOutPath
End Function

Download this snippet    Add to My Saved Code

Return only file name without path Comments

No comments have been posted about Return only file name without path. Why not be the first to post a comment about Return only file name without path.

Post your comment

Subject:
Message:
0/1000 characters