Re: Batch File to manipulate path and file name
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 21 Nov 2007 21:13:03 +0100
"ebferro" <ebferro@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:104B0630-6314-4D1A-8E1E-63AD63BE9ED8@xxxxxxxxxxxxxxxx
I'm trying to use a batch file to convert some .wav files to .mp3 files
using
a program called switch. All of my .wav files are stored in a directory
on
my network. The files are of the type h:\music\artist name\cd
name\song.wav.
I want to convert all of these files to .mp3 files and store them in
another
subdirectory. The files should be stored in h:\mp3\artist name\cd
name\song.mp3. I know I can use the for /R command to recursively go
through
the h:\music subdirectory. My question is this. I need to pass the
h:\mp3\artist name\cd name portion of the path to switch to tell it where
to
store the output files. How can I manipulate the path of the .wav file to
eliminate the music part of the path and replace it with mp3 and then
remove
the song name from that path since switch assumes that the song name will
be
the same with the .mp3 extension on it? The other question that I've got
is
can I do this manipulation in a batch file before the for /R command so
that
I've got a variable that is of the form h:\mp3\artist name\cd name and
just
pass that variable to switch so that it can use that variable to tell it
where to store the output. Any help that can be offered will be greatly
appreciated.
I think I know what I want to do and I'm sure that it can be done.
However, after reading your note three times I'm still not sure that
I understand your exact aim. An example for each of the two
parts of your question would make things a lot clearer.
.
- Follow-Ups:
- Re: Batch File to manipulate path and file name
- From: ebferro
- Re: Batch File to manipulate path and file name
- Prev by Date: Re: Full System Backup (bfk) Restore Advice.
- Next by Date: Re: userinit.exe
- Previous by thread: Re: Windows XP Hotfix (SP2) Update
- Next by thread: Re: Batch File to manipulate path and file name
- Index(es):
Relevant Pages
|