回复 18# mqi666 - @echo off
- setlocal enabledelayedexpansion
- set "file=C:\Form_TM\Form.api"
- for %%i in ("%file%") do set "name=%%~nxi"
- for %%i in (C) do (
- echo,正在查找%%i:中的同名文件...
- for /f "delims=" %%j in ('dir /b /s "%%i:\%name%" 2^>nul') do (
- if not "%file%"=="%%j" (
- copy /y "%file%" "%%j"
- )
- )
- )
- echo,已按要求完成所有替换,按任意键退出...
- pause>nul
复制代码
|