VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get the filename without path and extension, in one line of code

by Adash (3 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 25th December 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get the filename without path and extension, in one line of code

Rate Get the filename without path and extension, in one line of code




fName = Left$(Right$(FileName$, Len(FileName$) - InStrRev(FileName$, "\", -1)), Len(Right$(FileName$, Len(FileName$) - InStrRev(FileName$, "\", -1))) - 4)


Download this snippet    Add to My Saved Code

Get the filename without path and extension, in one line of code Comments

No comments have been posted about Get the filename without path and extension, in one line of code. Why not be the first to post a comment about Get the filename without path and extension, in one line of code.

Post your comment

Subject:
Message:
0/1000 characters