I have a Batch to weekly, delete a Temp Area (see end of message)
Part of the routine does not delete files (rd /s) with chars like accents
(á, ã and so on)
===== DELAREA.CMD ========
@echo off
cls
echo.
echo.
echo Apaga Lixeira
cd /d C:\DADOSTEMP\LIXEIRA
; rem *** pushd %1
del /q /f "*.*"
for /f "Tokens=*" %%i in ('dir /B /A /AD') do rd /s /q "%%i"
; rem *** popd
echo.
echo.
echo Move AreaComum para Lixeira
xcopy C:\DADOSTEMP\AREACOMUM\*.* C:\DADOSTEMP\LIXEIRA /E /S /C /H /R /Y
cd /d C:\DADOSTEMP\AREACOMUM
; rem *** pushd %1
del /q /f "*.*"
for /f "Tokens=*" %%i in ('dir /B /A /AD') do rd /s /q "%%i"
; rem *** popd
===== DELAREA.CMD ========
|