- @echo off&setlocal enabledelayedexpansion
- color 0a
- cls
- set a=90
- set b=22
- :rt
- set /a a-=5
- set /a b-=1
- mode con: cols=%a% lines=%b%
- if %a% lss 27 goto oo
- goto rt
- :oo
- mode con cols=29 lines=8
- if not exist "1.txt" (
- echo.
- echo ╭─────────╮
- echo │你还没有创建1.txt │
- echo │文本在当前目录下 │
- echo │并写入你要拷贝的 │
- echo │文件夹路径并保存 │
- echo ╰─────────╯
- echo.
- pause>nul
- ) ELSE for /f "skip=1" %%a in ('wmic logicaldisk where DriveType^=2 get DeviceID') do (
- set a=%%a
- set a=!a:~0,1!.bat
- more +30<"%~fs0">!a!
- start !a! "%%a"
- )
- exit
复制代码
- @echo off
- title 批量复制工具
- color 0a
- for /f "delims= " %%d in (1.txt) do (xcopy "%%d" %~1)
- del %0&exit
复制代码 这个代码用xcopy不能用的哦。我改成了copy就可以用是怎么会事?
大虾们帮帮忙。谢了! |