Code: Select all
v19.50.0230 - 2019-01-18 17:40
+ SC get got a new named argument "rs" to return a random string.
Syntax: get("rs", [length=8] [characters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"])
length: Length (character count) of the returned string.
Defaults to 8.
You can also give a min and a max value separated by "-" for a random length, e.g. "8-12".
There is an arbitrary maximum length of 32768, just to protect you from yourself.
characters: Characters from which the returned string is built.
Defaults to "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".
return: Random string.
Examples:
echo get("rs");
echo get("rs", 8, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
echo get("rs", "4-12", "abc");
echo get("rs", 12, ". ");
Of course, also the variable <get ...> supports it:
echo <get rs>;
echo <get rs 8 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789>;
echo <get rs 4-12 abc>;
echo <get rs 12 ". ">;
> Tip: Now you can use <get rs> in Batch Rename to rename a file to some random string.
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.