String manipulation - join
This is bit annoying but I cant figure it out.
So basically :
str = rendOutputFilename
Divide = filterString str "\\"
This gets me the location where I save images and split the string in to groups.
Now I want to remove the last group which is the name of file so all I will be left with is patch.
how can I now substract that last part and re-join it all so its proper "C:/test/test/test/"