tulsantide
Technical User
Hi,
I'm trying to split a string at the last delimiter in a vbscript and the following is not working. Please let me know if I'm doing anything wrong.
fname = "C:\Users\userid\Downloads\scripts\test.xlsx"
myarray=Split(fname, "\$",2)
msgbox myarray(0)
I'm expecting the output to be C:\Users\userid\Downloads\scripts
Thanks
I'm trying to split a string at the last delimiter in a vbscript and the following is not working. Please let me know if I'm doing anything wrong.
fname = "C:\Users\userid\Downloads\scripts\test.xlsx"
myarray=Split(fname, "\$",2)
msgbox myarray(0)
I'm expecting the output to be C:\Users\userid\Downloads\scripts
Thanks