@jmarshallnz : I tried that but GetParentPath(rar://%2fhome%2farnova%2fVideos%2fMovie.rar/Terminator.mp4) gives me "rar://%2fhome%2farnova%2fVideos%2fMovie.rar/" and I we obviously need it to be "/home/arnova/Videos" (like GetDirectory(CURL(strCurrentFile).GetHostName(string)) does). Ideas?