数码相框

Has your digital picture or music library become so large that you have a hard time sifting through them to load up your devices? Well, why do yourself what your computer can do for you? With a simple customizable script, you can easily have Windows pick random files from one folder and copy them to another.

您的数字图片或音乐库是否太大了,以至于难以筛选它们以加载设备? 那么,为什么要自己做您的计算机可以为您做的呢? 使用简单的可自定义脚本,Windows可以轻松地从一个文件夹中选择随机文件,然后将其复制到另一个文件夹。

用途 (Uses)

While copying random files from one directory to another is certainly not a traditional function, it does have its practical uses:

虽然将随机文件从一个目录复制到另一个目录肯定不是传统功能,但它确实有其实际用途:

  • Load up a digital picture frame with random pictures from your library.用库中的随机图片加载数码相框。
  • Pick random music from your music library to fill your MP3 player.从音乐库中选择随机音乐以填充MP3播放器。
  • Anything else you can think of… post suggestions below.您还能想到的其他任何事情……在下面发布建议。

自定义脚本 (Customizing the Script)

Before using the Copy Random Files script, there are a few settings which you need to make (just right click on the script file and select Edit to open it in Notepad). The location of where you need to enter this information as well as additional details are clearly labeled in the script.

在使用“复制随机文件”脚本之前,需要进行一些设置(只需右键单击脚本文件,然后选择“编辑”以在记事本中将其打开)。 脚本中清楚地标记了您需要输入此信息以及其他详细信息的位置。

  1. Destination Folder – the directory where the random files should be copied to.目标文件夹–随机文件应复制到的目录。
  2. File Filter – optionally specify the types of files you want to pick from (i.e. only JPG and PNG or only MP3 and OGG files).文件过滤器–可选地指定您要选择的文件类型(即,仅JPG和PNG或仅MP3和OGG文件)。
  3. Search Sub-Directories – should the source include files from sub-directories as well?搜索子目录–源也应包括子目录中的文件吗?

You can create as many copies of the script as you want. So you can easily create a copy which picks random pictures, one which picks random music, etc. Just duplicate the Copy Random Files script, give it an appropriate file name and then customize accordingly.

您可以根据需要创建任意数量的脚本副本。 因此,您可以轻松创建一个可以随机选择图片的副本,可以随机选择音乐的副本等。只需复制“复制随机文件”脚本,为其指定一个适当的文件名,然后进行相应的自定义即可。

将脚本添加到“发送到”菜单 (Adding the Script to your Send To Menu)

The Copy Random Files script is designed to work from your Send To context menu.

复制随机文件脚本旨在从“发送到”上下文菜单中使用。

Open the Send To folder by navigating to:

通过导航到打开“发送到”文件夹:

“%AppData%\Microsoft\Windows\SendTo”

“%AppData%\ Microsoft \ Windows \ SendTo”

Or you can just paste this location into your Run menu.

或者,您可以将此位置粘贴到“运行”菜单中。

Create a new Shortcut in the Send To folder.

在发送到文件夹中创建一个新的快捷方式。

Select the source script which you have customized.

选择您自定义的源脚本。

Enter a title as you want it to appear in the Send To menu.

输入想要显示在“发送到”菜单中的标题。

Once finished, you can optionally change the icon which appears in the Send To menu by opening the Properties dialog of the newly created shortcut and clicking the Change Icon button.

完成后,可以选择打开新创建的快捷方式的“属性”对话框,然后单击“更改图标”按钮来更改“发送到”菜单中显示的图标。

Select the icon you want to use and apply your settings.

选择要使用的图标并应用设置。

使用复制随机文件脚本 (Using the Copy Random Files Script)

Once the shortcut is in place, you can now start the copy function via the right-click context menu. Simply navigate to the folder which contains the files you want to copy from, right click on a file or folder and select the copy random files shortcut you previously created.

快捷方式到位后,您现在可以通过右键单击上下文菜单启动复制功能。 只需导航到包含要复制的文件的文件夹,右键单击一个文件或文件夹,然后选择先前创建的复制随机文件快捷方式。

Note that you must be in the folder you want to be the source when you invoke the function. In our example below, if we were to invoke the command by right-clicking on the Sample Pictures folder in the parent folder (Libraries > Pictures), the parent folder would be picked up as the source folder instead of the Sample Pictures folder.

请注意,调用函数时,您必须位于要作为源的文件夹中。 在下面的示例中,如果要通过右键单击父文件夹(“库”>“图片”)中的“示例图片”文件夹来调用命令,则将选择父文件夹作为源文件夹,而不是“示例图片”文件夹。

Once you select the command, the script will summarize the current configuration options and scan the source folder for the number of applicable files. This can take a while if you select a folder which contains an enormous amount of files. Once this is done, you will be asked for the number of random files to copy.

选择命令后,脚本将汇总当前配置选项,并在源文件夹中扫描适用文件的数量。 如果您选择一个包含大量文件的文件夹,则可能需要一段时间。 完成此操作后,系统将询问您要复制的随机文件数。

The script will run and copy the appropriate number of random files. You can view the progress by looking at the title bar during the copy process.

该脚本将运行并复制适当数量的随机文件。 您可以在复制过程中通过查看标题栏来查看进度。

Note that if a file with the same name exists in the destination, it will be overwritten.

请注意,如果目标中存在同名文件,则它将被覆盖。

Once finished, you can see the files copied are a random subset of the source files.

完成后,您可以看到复制的文件是源文件的随机子集。

Download Copy Random Files script from HowToGeek.com

从HowToGeek.com下载复制随机文件脚本

翻译自: https://www.howtogeek.com/58471/easily-load-your-digital-picture-frame-and-mp3-players-with-randomly-picked-media-files/

数码相框

数码相框_通过随机选择的媒体文件轻松加载数码相框和MP3播放器相关推荐

  1. java 加载class文件路径_动手实现MVC: 1. Java 扫描并加载包路径下class文件

    背景 用过spring框架之后,有个指定扫描包路径,然后自动实例化一些bean,这个过程还是比较有意思的,抽象一下,即下面三个点 如何扫描包路径下所有的class文件 如何扫描jar包中对应包路径下所 ...

  2. 带倍速播放的播放器_带有HTML5的MP3播放器

    带倍速播放的播放器 MP3 Player with HTML5 In you are a beginner in HTML5 and you are looking for new knowledge ...

  3. 百度ssp php源码,百度联盟SSP媒体广告异步加载代码最优解决方案

    百度联盟SSP媒体广告异步加载代码最优解决方案 相信很多站长跟我一样,建站之后第一时间就会去做百度.谷歌等联盟广告,原因很简单,就是希望能给自己增加一丢丢的收入,虽然可能几个月才收到100块(百度真小 ...

  4. unity 异步加载网络图片_一个非常好用的AssetBundle资源加载器

    Loxodon Framework Bundle是一个非常好用的AssetBundle加载器,也是一个AssetBundle冗余分析工具.它能够自动管理AssetBundle之间复杂的依赖关系,它通过 ...

  5. xib文件的加载方法

    xib文件的加载方法 以UITableViewCell的cell为例 很多时候因为系统的cell无法满足我们的日常需求,我们都会自定义cell 因为cell的界面比较固定,所以通常都会选择用xib来描 ...

  6. 一个mapper接口有多个mapper.xml 文件_MyBatis 源码解析:映射文件的加载与解析(上)

    上一篇我们分析了配置文件的加载与解析过程,本文将继续对映射文件的加载与解析实现进行分析.MyBatis 的映射文件用于配置 SQL 语句.二级缓存,以及结果集映射等,是区别于其它 ORM 框架的主要特 ...

  7. Matlab绘图保存为.fig格式以使用,及.fig文件的加载与数据读取

    1 使用背景 fig文件作为Matlab中的图形文件,其实原始数据是会存储在figure对象中的,其不仅仅只是一张图片: 论文写作时,直接将plot运行的结果进行截图粘贴时,图片的分辨率不够导致曲线及 ...

  8. Java播放midi文件及加载sf2音色库示例

    最近折腾Java的MIDI功能,发现网上的教程大多只讲到怎么用Sequencer,更深入的比较难找,而且大都没的注释,于是自己踩坑无数,来这里发点稍微深入使用Java的MIDI功能的示例(嘛其实也没多 ...

  9. Cesium源码解析一(terrain文件的加载、解析与渲染全过程梳理)

    快速导航(持续更新中-) Cesium源码解析一(terrain文件的加载.解析与渲染全过程梳理) Cesium源码解析二(metadataAvailability的含义) Cesium源码解析三(m ...

最新文章

  1. 根据函数指针地址获取函数名
  2. jboss7 应用详解_COMSOL Multiphysics多物理场仿真技术与应用光电专题线上培训
  3. 根据txt中的文件名将文件复制到目标文件夹中
  4. js 正则学习小记之左最长规则
  5. html边框有箭头,css简单实现带箭头的边框
  6. 通用路由封装(GRE)×××配置
  7. 3 - Spring AOP
  8. div 多列等高对齐
  9. html css开关按钮样式,纯CSS实现开关按钮
  10. Excel高级应用教程:数据处理与数据分析
  11. 2020秋季校园招聘深信服、噢易云、绿盟面筋
  12. 来自北京大学NOIP金牌选手yxc的常用代码模板2——数据结构
  13. 抖音国际版Tik Tok进入IPFS存储网络 Filecon生态进一步扩大
  14. 顺序表的建立及基本操作
  15. Django-rest-framework简介
  16. 智能锁行业进入视频时代,如何定义一把好的视频锁?
  17. Java项目:医药信息管理系统(java+SSM+HTML+easyui+mysql)
  18. 你不爱听,我偏要讲——创业融资的14个教训
  19. 考研数据结构中的经典算法(总归纳)
  20. 《Spring实战》读书笔记-第3章 高级装配,字节跳动四面技术面

热门文章

  1. 最详细的“ECC-汉明码”原理讲解
  2. webuploader java_使用WebUploader实现上传文件功能(一)
  3. python交流企鹅裙_11个Python爱好者最爱访问的站点,值得收藏,帮助你更上一层楼...
  4. 淘宝/天猫盗用图片投诉之什么是原图?提示非原图怎么办?
  5. Photoshop2020 安装失败FATAL: Error (Code = 146)
  6. redis学习笔记4-客户端管理
  7. #互联网广告#复杂网络机遇和挑战(十大问题)
  8. 移动滑块在PC端与移动端的兼容
  9. 交换机、路由器与终端基本配置Ⅱ(交换机和终端配置IP地址、交换机的网关配置)
  10. 香港没有背景转计算机,香港城市大学商务咨询系统(无IT背景)理学硕士怎么样?好不好...