Dos .bat Search and Replace in Filenames and Files

I am using Dos Batch .bat files (I have Vista) to do a large variety of tasks

related to creating XML and Mp3 based activities.

I have a batch file that:

1- parses my [url removed, login to view] file of words such as this:






2- uses the underscore _ as a delimiter, and assigns the %%a value to the

first part (spanish word), and the %%b value to the 2nd part (english


3- uses the %%a value to create a list of Spanish .txt files that I feed into

Text Aloud, a voice to speech application that reads in Spanish. The bat file

maintains the Spanish accents, which are needed for Text Aloud to read the

words correctly. Text Aloud then creates mp3s for each of these Spanish


4- creates a list of words like this

[url removed, login to view]

[url removed, login to view]

Which I feed into my XML activity creating bat file, which creates a wide

variety of XML based activities based on the English and Spanish Words.

I need help with the following things:

1- stripping the unicode accent marks OUT of the filenames of .mp3 files in

the /sound folder (for example, replacing mφ[url removed, login to view] with [url removed, login to view])

2- doing an automatic search and replace in the XML to replace the dashes [-]

with a space [ ]

3- doing an automatic search and replace in the XML to replace any accent

marks such as í, é, á, ó, ú, ñ which are found in the sound and image paths.

This means replacing only these occurences when the string ALSO contains

either "swf" or "mp3". For all of the text only occurrences of the words, I

want to maintain the accent marks.

4- Right now my .bat file can show both the English and Spanish as lowercase

or uppercase. But the accent marks don't get converted to uppercase - and I'd

like the accents to also be converted to uppercase whenever the words are

shown in uppercase.

I will attach an archive file with some of my bat files, as well as some of the

generated output so you can see. Since my activity creators relies on the .mp3 extensions, use the [url removed, login to view] to rename text files for activity creation - you can do that if you want to try it out.

Please note I had to use .cab for the archive, as zip could not handle the unicode filenames - you can use ALZIP, a free tool - to unzip this.

Habilidades: Área de trabalho do Windows

Veja mais: search replace filenames, dos search replace filenames, search replace bat, replace files bat, dos bat search word, bat replace accent, replacing words bat file, dos rename space underscore string, bat txt file search replace, dos creating filenames, dos replace accents, batch text replace aacute, search replace dos, dos string replace file, dos search replace file, bat search replace xml, batch search replace filenames, the n and o, text string search, string search in c, string b, some search string, search text string, search string in c, search string c

Acerca do Empregador:
( 37 comentários ) Anchorage, United States

ID do Projeto: #548628

2 freelancers estão ofertando em média $135 para esse trabalho


I can do this script

$220 USD in 2 dias
(7 Comentários)

i could help you with the script

$50 USD em 1 dia
(0 Comentários)