Sorry, my bad, I just saw the word 'zipped' and assumed the images were in the zips
Hmm, I'd been using
CODE
$replace(%_path%,%_filename_ext%,)folder.jpg
, but I do like the string you're offering - it wont fail if the filename appears elsewhere in the path (unlikely of course).
As for zipped folders, I just made a test file, the path comes up as:
CODE
C:\Documents and Settings\<removed my full name>\Desktop\this is a test folder.zip|this is a test folder/bleargh.wav
It appears to be using a forward slash for directories inside the archive, so gfngfgf's code should work.
So to clarify, in the case of a zipped album, you should use gfngfgf's string, which is
CODE
$substr(%_path%,1,$strrchr(%_path%,'\'))folder.jpg
Edit: removed my name from that filepath. Stupid windows, storing stuff in such a stupid place lol.