Help!
I have a script here that will not work correctly
according to the InStrRev function rules. When it runs,
the file path comes out really weird. For example, the
path: "C:\Documents and Settings\user1\My
Mail\personal.pst" is coming back "gs\user1\my
mail\personal.pst" instead of just displaying the file
name "personal.pst" like it should. Can someone please
take a look? If you need the rest of the code, let me
know. Basically what I have is a list of file path names
in lstPSTList and I'm trying to trunkate the whole path so
I just get the file name.
strKeys = lstPSTList.Keys
For intPST = 0 To lstPSTList.Count - 1
strPSTFilePath = lstPSTList.Item(strKeys(intPST))
strPSTFile = Right(strPSTFilePath, InStrRev
(strPSTFilePath, "\"))
MsgBox strPSTFile
Next