- @echo off
- setlocal enabledelayedexpansion
- set SOURCE="D:\Program Files\a dir"
- for %%d in (d) do (
- for /f "delims=" %%i in ('dir /s /b %%d:\afile.txt') do (
- set FILE_PATH=%%i
- echo !FILE_PATH!
- xcopy "!SOURCE!" "!FILE_PATH!\..\Plug-Ins\BAK" /E/Y/I
- )
- )
- pause
复制代码
|