stu_p 当前离线
列兵
@echo off for /F "delims=" %%a in ('xcopy "D:\*.txt" /lrh') do if exist %%a if not defined "%%~dpa" set ""%%~dpa"=="&echo. %%~dpa pause复制代码
TOP
Hello123World 当前离线
荣誉版主
C:\hello>xcopy /lrh "%userprofile%\desktop\*.txt" C:\Users\helloworld\desktop\02.txt 覆盖 C:\hello\1.txt (Y:是/N:否/A:全部)?复制代码