G
Guest
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.
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.