回复 6# zhangop9 - @echo off
-
- setlocal enabledelayedexpansion
-
- rem 设置“发送到”的一级菜单
- set "TopMenu=加前缀[]"
-
- rem 设置前缀
- set "list=长江 黄河 汉阳 武汉 ..."
-
- set "folder=%userprofile%\SendTo\%TopMenu%"
-
- if not exist "%folder%" md "%folder%"
-
- set n=0
- for %%a in (%list%) do (
- >"%folder%\!n!.[%%a].bat" echo ren %%1 "%%~n0%%~nx1"
- set /a n += 1
- )
复制代码
|