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 path from a filename, in one line of code
fDir = Left$(FileName$, InStrRev(FileName$, "\", -1))