Windows 复制评分文件的批处理文件

Windows Batch File that Copy Rated Files

嗨,Whosebug 社区,

我想问一下是否有办法复制使用 Windows 批处理作业 (.bat) 评级的文件。

这些文件是照片,有些是在相机内评级的。当所有这些文件(已评级和未评级)都复制到我的硬盘时,我想让批处理作业自动将已评级的文件复制到另一个文件夹中。

我知道我的电脑在查看评级时没有问题,因为当我查看评级文件的属性时,其中显示了一些星星。

非常感谢任何帮助,并在此先感谢您=)

检查tooltipinfo.bat。如果通过的项目被评级,它将在输出中有类似的东西:

Rating: 5 Stars

所以您需要 tooltipinfo.bat 在您的 directory.Then 创建批处理文件中,例如:

(未测试)

@echo off

set folder_with_the_items=C:\photos_and_videos
set destination_folder=C:\somewhere_else

for /f "tokens=* delims=" %%a in ('dir /a:-d /b /s "%folder_with_the_items%\*"') do (
   call tooltipinfo.bat "%%~fa" | find /i "Rating:" >nul 2>nul && (
        copy "%%~fa" "%destination_folder%"
   )
)

因为您需要更改脚本开头的文件夹位置。