Re: BatchProcessing Files on Windows

"[email protected]" <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
If the place of Sox is "C:\Program Files (x86)\Sox\sox.exe", you could
also start your command in your wav-folder:

FOR %F IN (*.wav) DO "C:\Program Files (x86)\Sox\sox.exe" "%F" -b 8
"%~NF.aiff"

or

FOR %F IN (*.wav) DO "C:\Program Files (x86)\Sox\sox.exe" "%F" -b 8
"processedfolder\%~NF.flac"

*.cmd means a batch file. I have attached such a file ("command.txt"):
- copy it inside your wav-folder
- if necessary do any changes
- inside a cmd-file you need double "%"
- rename it to "command.cmd" and make a double-click :-)

Regards
Thomas


Am 27.05.2020 um 15:33 schrieb Nils Wallgren:
> I have my sox.exe in in my Program Files (x86). What I always do is 1)
> open the folder that contains the audiofiles, write the “cmd” in the
> address field
>
> 2) set the audiodriver=waveaudio
>
> 3) then I use sox/play/rec
>
> I don’t know any other way to work.
>
> Sorry. But when you write *.cmd I am not really sure where to run this
> command.
>
> I tried my workprocess with FOR %F IN (*.wav) DO sox.exe "%F" -b 8
> "processedfolder\%~NF.flac" and it works
>
> But not really sure what the ~NF is short for.
>
> If I work within the folder of Sox I also need to place the audiofiles
> in this folder too.
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
> *From: *[email protected] <mailto:[email protected]>
> *Sent: *Wednesday, 27 May 2020 14:31
> *To: *Nils Wallgren <mailto:[email protected]>
> *Cc: *[email protected]
> <mailto:[email protected]>
> *Subject: *Re: [SoX-users] BatchProcessing Files on Windows
>
> This is a fake sox-path :-) You must use ure own path!!! Where is your
> sox. exe? Or do you start the batch file or command inside the folder of
> Sox, where the sox.exe is?
>
> This should work - commandline (if you have flac inside):
> FOR %F IN (*.wav) DO sox.exe "%F" -b 8 "%~NF.flac"
>
> Or in a *.cmd:
> FOR %%F IN (*.wav) DO sox.exe "%%F" -b 8 "%%~NF.flac"
>
> Regards
> Thomas
>
> Am 27.05.2020 um 11:48 schrieb Nils Wallgren:
>
>     “C:\sox.exe"' is not recognized as an internal or external command”
>

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
command.txt (text/plain, 105 B)
FOR %%F IN (*.wav) DO "C:\Program Files (x86)\Sox\sox.exe" "%%F" -b 8 "processedfolder\%%~NF.flac"
Pause
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.