F2 Renamer - Is $pathpart(x) broken ?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

F2 Renamer - Is $pathpart(x) broken ?

Post 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 ?
void
Developer
Posts: 15098
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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
Post Reply