xxx sheet 0724.xlsheet 0725.xls 會把*萬用符裡的檔名也加進去了 請問要怎麼修改會比較好 我只想將複製完的檔案做字尾的日期改名而已~
求求高手解答~

@echo off
setlocal
set "source_folder=%~dp0"
for /d %%a in ("%source_folder%\*") do (
if exist "%%a\*sheet 0724.txt" (
copy "%%a\*sheet 0724.txt" "%%a\*sheet 0725.txt"
)
)
echo 完成!
pause
endlocal