Stupid Geek Tricks: Randomly Rename Every File in a Directory

June 2024 ยท 2 minute read

Quick Links

Looking to have a little fun with your files or play a clever prank on someone? With a simple batch script you can randomly rename every file in a directory instantly.

Update: An "undo" function has been added to the script. There are comments in the batch script which explain how to use this.

Just copy our RandomNames.bat script into a folder and run it.

Before:

After:

Uses

While it may not be immediately obvious, there are several somewhat practical uses for this:

Options

There are a couple of options you can configure in the script:

You can set these options by opening the RandomNames.bat file in Notepad and editing accordingly. There are comments included to let you know how to set each option.

Warning!

When the script runs, it warns you that deleting the created translation file (__Translation.txt) will prevent you from being able to undo the renaming.

Needless to say, it would be a good idea to backup your original files before renaming them all.

Use responsibly and have fun!

Download RandomNames script from How-To Geek

ncG1vNJzZmivp6x7qbvWraagnZWge6S7zGhscG5mZny0wNSpoJ1ll5qyrHnTq6Cco6Niv6K6w6ikpbFdp7KvrcyeZJ6ulafGbrLIpZxmoZ5irm6wyKucnKyfp8Zw