本帖最后由 yyz219 于 2021-12-27 09:01 编辑
- 完美解决了:
- ++++++++++++++++++
-
- @echo off
- if %1=="" exit
-
- for %%a in (%*) do (
- xcopy /s /i %%a "%~dp0"
- )
-
- echo Done!
- pause
- exit
- ++++++++++++++++++++++++++++++++++++++++++++
- 或者:
- for %%a in (%*) do ( xcopy /s /i %%a %~dp0 )
- pause
复制代码
|