文件重命名随机_愚蠢的怪胎技巧:随机重命名目录中的每个文件

文件重命名随机

文件重命名随机

image

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.

只需将我们的RandomNames.bat脚本复制到一个文件夹中并运行它。

Before:

之前:

image

After:

后:

image

用途 (Uses)

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

尽管可能不会立即显而易见,但是有一些实际用途:

  • Easily bulk rename picture files to randomize the order they appear in slideshows or on digital picture frames.

    轻松批量重命名图片文件,以随机化它们在幻灯片或数码相框中出现的顺序。
  • A practical joke (see the warning below).

    一个恶作剧(请参阅下面的警告)。
  • In case the “random” button on your MP3 player isn’t geeky enough for you.

    如果您的MP3播放器上的“随机”按钮对您来说还不够怪异。

选件 (Options)

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

您可以在脚本中配置几个选项:

  • Prepend the file names – instead of renaming the entire file, a random string is added to the beginning of each file name.

    在文件名前添加–而不是重命名整个文件,而是在每个文件名的开头添加一个随机字符串。
  • Undo renaming –

    撤消重命名–

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.

您可以通过在记事本中打开RandomNames.bat文件并进行相应的编辑来设置这些选项。 包含一些注释,可让您知道如何设置每个选项。

警告! (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.

脚本运行时,会警告您删除已创建的翻译文件(__Translation.txt)将使您无法撤消重命名。

image

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

从How-To Geek下载RandomNames脚本

翻译自: https://www.howtogeek.com/57661/stupid-geek-tricks-randomly-rename-every-file-in-a-directory/

文件重命名随机

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值