win11_22h2 测试通过- @echo off
-
- :loop
- set /p s=请输入一个数字,按回车键退出
- if %s%==1 goto :c1
- if %s%==2 goto :c2
- exit
-
- :c1
- set "s=E:\01_项目2024\15_广西2024\03_资料0914"
- mshta.exe vbscript:ClipboardData.SetData("text","%s%")(close)
- echo 已复制 %s%
- echo,
- goto :loop
-
- :c2
- set "s=E:\01_项目2024\"
- mshta.exe vbscript:ClipboardData.SetData("text","%s%")(close)
- echo 已复制 %s%
- echo,
- goto :loop
复制代码
|