F2 Renamer - Is $pathpart(x) broken ?

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

F2 Renamer - Is $pathpart(x) broken ?

Post by therube » Mon Jul 24, 2017 7:15 pm

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
Site Admin
Posts: 4604
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Tue Jul 25, 2017 9:34 am

$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