@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