Use InStrRev() to get last occurence of backslash and then Mid(... pos +1):
VB Code:
  1. Private Sub Command1_Click()
  2. Dim sText$
  3.  
  4.     sText = "C:\blah\foo\bar.txt"
  5.     MsgBox Mid(sText, InStrRev(sText, "\") + 1)
  6.  
  7. End Sub