PC Review


Reply
Thread Tools Rate Thread

How to deleteextended chars via Batch ?

 
 
KayZer Soze
Guest
Posts: n/a
 
      8th Aug 2005
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 ========


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to truncate list of meaningful words greater than 15 chars tomeaningful words of 8 chars. Babloo Microsoft Excel Worksheet Functions 2 29th Apr 2011 11:27 PM
A script/batch to kill a batch file from scheduled tasks? Bogdan Windows XP Configuration 1 31st Jul 2009 06:05 AM
batch file call from a macro - how ? and required batch format VB-rookie Microsoft Excel Programming 3 5th Sep 2008 10:33 PM
How to read a text file populated by multi-byte chars(e.g. Chinese chars )? Peter Microsoft VB .NET 0 1st Nov 2006 02:26 PM
Russian chars where should be spanish chars Jorge Andres Brugger Windows XP General 0 27th Sep 2006 01:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 PM.