I am using a commandline program in a batch file to convert different audio formats. However, I'd like to automate the process to read in all the filenames of a folder, and then run the executable on all of the folder's files.

This is the format for the executable (test.exe). '-o' is the argument to output a new file, 'output.wav', from a source file, 'infile.dsp'. 

```
start test -o outfile.wav infile.dsp

```

'Outfile.wav' *should* be based on a source file name from the folder. Instead of 'infile.dsp' and **'outfile.wav'**, I should have 'infile.dsp' and **'infile.wav'** in the source folder for each .dsp file.