Page 1 of 1

F2 Renamer - Is $pathpart(x) broken ?

Posted: Mon Jul 24, 2017 7:15 pm
by therube
F2, multi-file Renamer [non-Rexex] - Is $pathpart(x) broken ?

Search:
> ncmain.exe

Finds:
---> C:\NC\NCMAIN.EXE

Should $pathpart(%1) return: C:\NC\ ?
Should $pathpart(%1)%1 return: C:\NC\NCMAIN.EXE ?

Re: F2 Renamer - Is $pathpart(x) broken ?

Posted: Tue Jul 25, 2017 9:34 am
by void
$pathpart(%1) only works if the argument has a path, with the multi-file renamer, ncmain.exe will not have a path, so $pathpart(%1) will return an empty string.

$pathpart() will work in the advanced copy to folder and advanced move to folder as these dialogs work with the full path and filename.

I don't really want to hide the function in the multi-file renamer, maybe I could add another function that will supply the path of the file, something like %PATH%, so %PATH%\%1 would give you C:\NC\NCMAIN.EXE