Jump to content

ElastomerGuy

Members
  • Posts

    2
  • Joined

  • Last visited

ElastomerGuy's Achievements

Novice

Novice (1/7)

0

Reputation

  1. nchto was kind enough to post the following batch file which almost does what I need. The batch file below goes through the subdirectory c:\user\mp3 and recursively calls switch to convert the .mp3 files in c:\user\mp3 to new mp3 files in c:\user\mp3 128. My directories are of the form in=h:\music\artist name\cd name out=h:\mp3\artist name\cd name I've changed the in and out directories in the batch file to correspond to my directories. Unfortunately, I'm losing the cd name subdirectory when the conversion is completed. So, for example, let's say I have a subdirectory h:\music\bruce springsteen\born to run and that that subdirectory has 10 songs in it. Suppose further that I have a subdirectory h:\music\bruce springsteen\greatest hits which has 20 songs in it. When I run the batch file, it is converting the songs in both subdirectories but they all wind up in a subdirectory called h:\mp3\bruce springsteen. The output directory has 30 songs in it, the songs in both the h:\music\bruce springsteen\born to run and h:\music\bruce springsteen\greatest hits subdirectories. Is there any way to change the batch file so that the complete directory structure is preserved so in my example I'd wind up with h:\mp3\bruce springsteen\born to run with 10 songs in it and h:\mp3\bruce springsteen\greatest hits with 20 songs in it? Thanks in advance for any help that can be offered. @ECHO OFF SET in=C:\User\MP3\ SET out=C:\User\MP3 128\ FOR /D %%G IN (*) DO ECHO Converting files in: %in%%%G & ECHO Saving them to: %out%%%G & ECHO. & "C:\Program Files\NCH Swift Sound\Switch\switch.exe" -addfolder "%in%%%G" -format .mp3 -settings .mp3 CBR 128 TRUE JOINT FALSE -outfolder "%out%%%G" -overwrite PROMPT -convert -hide -exit ECHO All done! PAUSE
  2. I'm using Switch in a batch file to convert a bunch of .wav files to .mp3 files. I want to preserve the .wav files and create the .mp3 files in a new directory. Whenever Switch has to create a new directory, it asks me whether I want to create the new directory and I have to manually click on OK to get the program to continue. So, although the batch file has automated the process to some extent, it's not totally automated because I have to respond to the question about creating a new directory. Is there any way to supress this question so it just goes ahead and creates the new directory? Thanks in advance.
×
×
  • Create New...