发布网友 发布时间:2022-04-23 04:02
共1个回答
热心网友 时间:2023-10-14 05:28
以下代码复制粘贴到记事本,另存为xx.bat,编码选ANSI,跟要处理的文件放一起运行
@echo off
rem 将当前目录下多个指定文件拷贝/复制到一个新的指定目录里
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
set "newfolder=D:\xxx\目的文件夹"
if not exist "%newfolder%\" md "%newfolder%\"
for %%a in (
"文件1"
"文件2"
) do (
if exist "%%~a" (
copy /y "%%~a" "%newfolder%\"
) else echo;"%%~a" not found
)
echo;%#% +%$%%$%/%@% %z%
pause
exit