- @echo off
- ::【全部(桌面文件)移到(桌面\不常用\)】
-
- MD "X:\Users\Default\Desktop\不常用\"
- for /f "delims=" %%a in ('dir /a-d /b "X:\Users\Default\Desktop\*.*"') do (
- if /i not "%%~na"=="CGI+路径" if /i not "%%~na"=="Ghost" if /i not "%%~na"=="关机" if /i not "%%~na"=="移桌面文件" (
- move "X:\Users\Default\Desktop\%%~nxa" "X:\Users\Default\Desktop\不常用\"
- )
- )
-
- exit
复制代码
|