Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Extract file name from full path


'assumes FullPath is a string containing the complete path of a valid file
Dim FileName As String
FileName = Mid $(FullPath,InstrRev(FullPath, "\")+1)