Log in

View Full Version : Custom Commands- display selected filename


Monsieur
02-26-2003, 11:57 AM
I want to do something like

{
RNFR %f
RNTO %d[rename %f to:]
}

with more than one file selected.
but instead of the filename, it just displays %f on the Prompt.

would be nice to have the filename there instead!

bigstar
03-04-2003, 02:45 PM
due to the way the custom command parser functions this is not possible.

%d is replaced with the user provided data before %f is known.

Monsieur
03-04-2003, 06:04 PM
would it - as an alternative - be possible to disable the refresh after rename?

I have a couple of files, which i want all named kindalike, e.g.
"config.backup", "logs.backup", "mails.backup"
which i want to rename to
"20030304.config", "20030304.logs", "20030304.mails"

normally i would do this by copy&pasting the part of the same name (20030304) and deleting the rest.
but due to the refresh i have to wait after each single file, before i can process the next.