I've been trying to develop an expression that will give me just my file name at the end of a path, i.e.
C:\MyDocuments\MyPictures\ERFG4567.jpg
Where I just want to get the ERG4567.jpg. I have 2 variables with trying to work this out. One is I have no idea what the path will be, so there could be anywhere from 2 to ??, "\" marks, so the InStr hasn't been very effective. Also, the file name length can vary also, so using the "." in my InStr is also not very effective. Any suggestions??
C:\MyDocuments\MyPictures\ERFG4567.jpg
Where I just want to get the ERG4567.jpg. I have 2 variables with trying to work this out. One is I have no idea what the path will be, so there could be anywhere from 2 to ??, "\" marks, so the InStr hasn't been very effective. Also, the file name length can vary also, so using the "." in my InStr is also not very effective. Any suggestions??