这个代码也完美。。。- @echo off
- set "p86=Program Files (x86)\CorelDRAW Graphics Suite 2020\Programs64\Addons"
- set "p64=Program Files\CorelDRAW Graphics Suite 2020\Programs64\Addons"
- set "_d=%~p0"
- for %%p in ("%_d:~,-1%") do set "_d=%%~nxp"
- (for %%d in (c: d: e: f: g:) do (
- for %%p in ("%p86%" "%p64%") do if /i exist "%%d\%%~p" (
- md "%%d\%%~p\%_d%"&start "" "%%d\%%~p\%_d%"
- xcopy /s/f/y "." "%%d\%%~p\%_d%\"
- )
- )) 2>nul
- pause&exit/b
复制代码 我想请问一下,如果不是复制文件夹过去,只是复制bat目录下的文件过去。代码应该如何修改。 |