windows聚焦图片文件重命名脚本

windows 聚焦(spot light)服务是win10中系统提供的锁屏界面壁纸

win10聚焦图片路径为:
%localappdata%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets

将图片拷贝出来后,可以通过cmd指令进行重命名

ren * *.png

也可以通过bash脚本,通过msys2 bash进行重命名

#!/bin/bash
for file in `ls`
do
	if [ $file != "rename.sh" ];then
	   mv $file $file.png
   	fi
done

原文地址:https://www.cnblogs.com/wswind/p/10328261.html