1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| @echo off
Setlocal enableextensions
chcp 1252 >nul
set source=%USERPROFILE%
set destination=%USERPROFILE%\Desktop\oréo
cd /d %source% || exit /B 1
if not exist "%destination%" (mkdir "%destination%")
echo. & echo La recherche porte sur le dossier : %CD%
echo.
echo Recherche en cours, merci de patienter quelques instants ...
echo.
for /f "tokens=*" %%A in ('2^>nul dir /b /s /a-d "fichierA"') do (
copy /Y "%%~A" "%destination%"
)
echo.
echo Traitement terminé !
echo. & pause
exit /B |
Partager