发布网友 发布时间:2022-04-23 04:02
共1个回答
热心网友 时间:2022-05-18 07:32
@echo off
rem 根据文件名以指定字符分割成的多个部分将文件复制到相应文件夹
set #=Any question&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$% %z%
cd /d "%~dp0"
set file=D:\A-b-c.doc
for /f "delims=" %%a in ("%file%") do (
set "multipath=%%~na"
)
set "folder=D:\%multipath:-=\%"
if not exist "%folder%" md "%folder%"
copy "%file%" "%folder%\"
pause
exit