How to get filename (%N) from Search listbox?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

How to get filename (%N) from Search listbox?

Post by *obmana »

If I feed my search results in listbox, and then use command with parameters, I noticed that "%N" expands to full path instead expected filename.
Interestingly both "%P%N" and "%N" give the same result - full path.

Is there any sane way to extract just the filename as parameter, for the item listed in search listbox, without using additional batch script?
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

If you want just copy filenames use:
cm_CopyNamesToClip
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

No, I don't want to copy filename to Clipboard, I want to use filename as parameter.
Kyles
Junior Member
Junior Member
Posts: 22
Joined: 2014-04-01, 01:58 UTC

Post by *Kyles »

Please try to use "%n"...(lower case)
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

Thanks
rust
Junior Member
Junior Member
Posts: 13
Joined: 2013-12-20, 07:24 UTC

Post by *rust »

Please note that %n works well in search result panel, but in normal panel you'll get short name like %L and %l
Post Reply