How do I get just filename (without path and extension) like \"MyFileName\" from the following full path? C:\\A_B\\C.D\\E_\\F0123456789\\G\\MyFileName.txt
Set regEx = New RegExp regEx.Pattern = ".*\\" regEx.IgnoreCase = True filename = regEx.Replace(fullpath, "")