Code: Select all
::rename "b", "EN"
So it have to be something like that:
Code: Select all
::rename "b", "EN ("$currentfoler")"
Code: Select all
::rename "b", "EN"
Code: Select all
::rename "b", "EN ("$currentfoler")"
Code: Select all
::rename "b", "EN (" . gpc(<curpath>, "base") . ")";
That was quick. Thank you very much! This example must be included into the help file for the rename command.highend wrote: ↑09 Sep 2019 11:27 You mean this?
Code: Select all
::rename "b", "EN (" . gpc(<curpath>, "base") . ")";
Code: Select all
Examples
rename b, '*-<datem yyyymmdd>', p;
Appends the modified date to each of the selected items. With preview.
Note the single quotes around the date variable: This ensures that it is only resolved inside the rename procedure on a per-file basis. If it were double-quoted then all selected files would be appended the modified date of the currently focused item.
rename b, '*-<datem yyyymmdd>';
Appends the modified date to each of the selected items. Without preview.
rename , '*-<datem yyyymmdd>';
Same as above since the first parameter defaults to "b".
rename , '<dateexif yyyymmdd.hhnnss>-*', p;
Prepends the EXIF date to each of the selected items.
rename r, "\.html$ > .htm", p;
RegExp Rename replacing html extensions by htm.
rename s, "ü/ue";
Search & Replace Rename replacing all "ü" by "ue".
rename k, "0123456789", p;
Keep Particular Characters Rename, keeping only the numbers present in a filename.
rename e, "htm";
Change any current extension to "htm".
rename , "africa.png /e", p, "E:\TestFiles\asia.jpg";
Rename a specific file (here: E:\TestFiles\asia.jpg) to a hardcoded new name (africa.png), using itemlist and the /e switch (for renaming the extension as well).
rename b, <clipboard>, p, , 4; //drop illegal characters
rename b, <clipboard>, p, , 4, "_"; //replace them with _
rename b, <clipboard>, p, , 12, "_"; //same as before with increment
Rename by list:
rename "l"; //dialog is pre-filled with current item names
rename "l", "Don2017.jpg|Don2018.jpg"; //dialog is skipped; no preview
rename "l", "Don2017.jpg|Don2018.jpg", "p"; //dialog is skipped; preview
Code: Select all
::rename "b", "EN (<curfolder>)";