RobColborne
MIS
Hi
I have a field that holds a filepath, e.g.
c:\program files\document.doc
What I would like to do is extraact the file name, i.e. document.doc
I thought I could use a combination of the right and patindex commands to extract this by checking for the first occurence of the backslash from the right, but patindex always reads left to right.
Could anyone offer a method to do this?
Thanks
I have a field that holds a filepath, e.g.
c:\program files\document.doc
What I would like to do is extraact the file name, i.e. document.doc
I thought I could use a combination of the right and patindex commands to extract this by checking for the first occurence of the backslash from the right, but patindex always reads left to right.
Could anyone offer a method to do this?
Thanks