reducing save path
i'm trying to create new save path for maxfile. when i get maxfilepath i would like to reduce last, maybe last two folders in path
the idea is to take path and reduce it, and then attach new folder name at the end and create the new path.
I tried to filterstring array and delete last part but dont know how again assemble content of the array into something that can be used as string for save path
can you plz help me?