@echo off cd %userprofile%\Desktop

rem Create a temporary folder to move the files md temp

rem Move all files from the desktop to the temporary folder move . temp

rem Sort the files in the temporary folder by file type for /r %%i in (temp*) do ( for /f "delims=" %%j in ('echo %%~xi') do ( if not exist "temp%%j" md "temp%%j" move "%%i" "temp%%j" ) )

rem Move the sorted files back to the desktop move temp*.* . rd temp

echo Files on the desktop have been sorted by file type. pause exit

帮我写一个win7的批处理代码bat文件里的内容功能用于将桌面里的文件进行重新排序排序方式为项目类型

原文地址: https://www.cveoy.top/t/topic/jgPi 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录