add a feature for random renaming

Features wanted...
Post Reply
paul0
Posts: 137
Joined: 23 Oct 2009 19:26

add a feature for random renaming

Post by paul0 »

Sometimes, I like to rename some files name into random string including letter and digits.

Thanks.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: add a feature for random renaming

Post by TheQwerty »

There's always scripting... :wink:
rand()

Generates an integer random number.

Syntax: rand([low=0], [high=1])
low: [optional] the lowest value to return (default: 0)
high: [optional] the highest value to return (default: 1), should be same or higher than low
return: random number

Examples
echo rand(); //returns 0 or 1
echo rand(2, 4); //returns 2 or 3 or 4
echo rand(-1, 1); //returns -1 or 0 or 1
Could combine that with a while loop, maybe a chr() or two, and rename() and end up with your very own random renaming feature.

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: add a feature for random renaming

Post by paul0 »

thanks:-) :D :D

ramza__x
Posts: 84
Joined: 06 Oct 2007 02:21
Location: Australia

Re: add a feature for random renaming

Post by ramza__x »

Code: Select all

(000000001, 999999999)
And that will be the limit, else you'll get an error overflow
Windows XP Pro (SP3) (x86)
1680x1050 Res /120 DPI, Acer Laptop

Post Reply