Change Log for the latest
XYplorer BETA version:
Code: Select all
v25.60.0111 - 2024-03-11 10:21
+ Native Variables | <pad ...>: Revised the syntax and added a way to pad the
first/last number in a string. The number padding is actually more of a command than
a variable, but the variable form makes it nicely usable in Batch Rename.
Syntax: <pad length [char] [flags]>
length: Final length of the padded string, or of the padded number within the
string (depends on the flags).
char: Character to pad with.
If missing it defaults to " " (space).
Note that strings longer than one character are supported, although it's
hard to see a good use for this.
flags: b = only work on the base of a filename (exclude the extension)
n = pad the first (left-most) number in the string
nr = pad the last (right-most) number in the string
Examples:
echo "ab<pad 12>cd"; //ab cd --> pad char defaults to space
echo "ab<pad 12 ->cd"; //ab--------cd
echo "ab<pad 12 xy>cd"; //abxyxyxyxycd --> works, but useful?
echo "<pad 8 0>98.mkv"; //0098.mkv
echo "<pad 8 0>64.mpeg"; //064.mpeg --> probably not wanted
echo "<pad 4 0 b>98.mkv"; //0098.mkv
echo "<pad 4 0 b>64.mpeg"; //0064.mpeg --> nice
echo "64<pad 4 0 b>.mpeg"; //6400.mpeg
Examples for number padding:
echo "<pad 4 0 n>Text 1."; //Text 0001.
echo "<pad 4 0 n>Text 12."; //Text 0012.
echo "<pad 4 0 n>Text 123."; //Text 0123.
echo "<pad 4 0 n>Text 12 34."; //Text 0012 34. --> first number is padded
echo "<pad 4 0 nr>Text 12 34."; //Text 12 0034. --> last number is padded
Examples of use in Batch Rename (note that the asterisk is necessary, though its
position is irrelevant):
- Pattern: <pad 4 0 n>* = (only the left-most number is padded)
Old Name: New Name:
image_1.jpg image_0001.jpg
image_23.jpg image_0023.jpg
image_345.jpg image_0345.jpg
image_4567.jpg image_4567.jpg
- Pattern: <pad 4 0 nr>* = (only the right-most number is padded)
Old Name: New Name:
24h-image_1.jpg 24h-image_0001.jpg
24h-image_23.jpg 24h-image_0023.jpg
24h-image_345.jpg 24h-image_0345.jpg
24h-image_4567.jpg 24h-image_4567.jpg
- Pattern: <pad 4 0 bnr>* = (only the right-most number in the base is padded)
Old Name: New Name:
1.FC 1 vs FC Porto.mp4 1.FC 0001 vs FC Porto.mp4
1.FC 20 vs FC Porto.mp4 1.FC 0020 vs FC Porto.mp4
1.FC 300 vs FC Porto.mp4 1.FC 0300 vs FC Porto.mp4
To easily
upgrade to this BETA version from XYplorer, hold down the
CTRL key while you click
Help | Online Support | Check for Updates. If you prefer to
download the BETA version, choose one of these packages:
(1)
Installer Package, (2)
No-Install Package (for manual unpacking).
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned. It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...) before running a new BETA version. This will also help in fixing any fresh bugs.