From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 670CC1F55B for ; Thu, 28 May 2020 14:18:03 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jeJM4-0003K0-JI; Thu, 28 May 2020 14:17:56 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeJM3-0003Jt-K2 for sox-users@lists.sourceforge.net; Thu, 28 May 2020 14:17:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FhthIwBCspyg4PeyXeFQi65jrT64gFttxU7GXU1xkZs=; b=cP/JzbA/O0IHZ66qk3Vk2zHZ+ KmtbsKWtSn8+cmglCXG6GrpvNCxRvJWPmP1L5ahSWglvZDdUpvXu5PIMaYjimYw4ioGmMrV5X/ONJ o8s/Rf7gskvKgB4G5L5MLcegP2QvGrP1GZCIyja/1EzocfZtL3Y0mLva8wOeEx8mRNEKI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=FhthIwBCspyg4PeyXeFQi65jrT64gFttxU7GXU1xkZs=; b=RcusMnkOVWwIkHPaS+d537BQ2J q2+GPxstcGERP2dWbGaCLQ00SOy/DmY3HLd+7hQYYLzXA1laD35PbJ+55Qydq1z98VqRz1izWUNP+ zD7YOpLWn+8mx69swLHxPI3CSLoBKDg9fNzmIi7W8HK5b5zGvZ2ma3WOFD6lJe98q5jU=; Received: from mail-wm1-f48.google.com ([209.85.128.48]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jeJM1-00Asgk-LV for sox-users@lists.sourceforge.net; Thu, 28 May 2020 14:17:55 +0000 Received: by mail-wm1-f48.google.com with SMTP id n5so3380519wmd.0 for ; Thu, 28 May 2020 07:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=FhthIwBCspyg4PeyXeFQi65jrT64gFttxU7GXU1xkZs=; b=IbEtcXViJ6ITW4CRBa5/AGrLVP0gtcVCBfI8DIzJenuaXa3r/CnFcdrtbp+CdxJbvO W/F/MuAqJ0RNY8r/Nr5Vju++ZKfTawWOg9p5ycCzCfxcWlmBODYxQPwX0uAEhB8hJmPm 5B6T8563pZM89v9yruorg1nuOgM14B4ZBJXCWJTQ8/3o9pccJp5TzIAOJUT+5Y1ZmSZH mR9cqWWGAB07KbU9wDzKJi9Ge2c2HeCsl9OZd/3SlLBq2sF0PW6Td58RyUJBPEntQafx 2I4xspYyX+r36ITXdKyNXf6vkFPbD1H2Em9wcQZxMkU+U4aELbwfxAQhVjwP4vjqcW8E v9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=FhthIwBCspyg4PeyXeFQi65jrT64gFttxU7GXU1xkZs=; b=nYhvaTuJycs0BSXZCmMK2mnQ9YSnYvTc+pe4L+H9VmFtfRpPOVRa46lXgTEB58+rGY 4FUnuJp7oOx4pNI9pn9snDrLb1J0mQGVElQLYtwIEAhecn8RMR6Xhyq/SSlG8S2Yg/NI luPM4CJbrt23PdSUYTz2MJYu7i9Vuj9jOMXGDyao98e0LKu/2WZO2x/96EyG7vXmmt8n BG+TIi9+CVMIMF9wjIyx3zj/cIxbnWxZSguZ9pgmtPw1OoPSpgTst1l95xUwwxpCmBi3 Ki5ScOxfKiETQidDozf9wB4+kAptpBYDEQ8/anWtYE8H1oB3S2jK8VXhwwjbZtcOPjzT +9BA== X-Gm-Message-State: AOAM531ukhkz1DXTyc3qjDbjjSHUxW/MwZfN726y+VXBaSRKw4SGpoeM PMSwFdpfY8IzsdaPvgUxYp0T4rxiLiPp2wGjPyoAhTs= X-Google-Smtp-Source: ABdhPJy3kGor/qtdn0DifUC6xCfCa1UMgAWnJxEt/BJsA1z79AviSWRPcHlxRFRZ2hV01oQX8LRbwPO1bnPHqalVxSM= X-Received: by 2002:a1c:1902:: with SMTP id 2mr3616935wmz.178.1590675466974; Thu, 28 May 2020 07:17:46 -0700 (PDT) MIME-Version: 1.0 References: <173dc6c3-ff96-e8b7-a072-3d3f84220e5d@bayern-mail.de> <13d91385-87d0-635e-aa10-5a0cdbe11b50@web.de> In-Reply-To: From: Jeff Learman Date: Thu, 28 May 2020 10:17:35 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jeJM1-00Asgk-LV Subject: Re: BatchProcessing Files on Windows X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============4481115564627526218==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============4481115564627526218== Content-Type: multipart/alternative; boundary="000000000000297a7405a6b5feda" --000000000000297a7405a6b5feda Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable BTW, if you have more Windows cmd issues, I highly recommend joining and asking at http://stackoverflow.com which is a better place for generic questions. Of course, at first you didn't know whether your issues were sox issues (and one of them was.) Just pointing out a great resource for that kind of question. They can also answer sox questions there. On Thu, 28 May 2020 at 10:07, Jeff Learman wrote: > %%~Ni returns the base filename (without directory or extension) for %%i, > if %%i is the index in a FOR loop. See > https://stackoverflow.com/questions/3432851/dos-bat-file-equivalent-to-un= ix-basename-command > for more info. Look at the second answer down, which has a list for what > "%~xi" does for different letters x. Apparently it's case-insensitive. > Also, the for is different in a batch file than on the command line, "%%" > versus "%", see > https://stackoverflow.com/questions/14509652/what-is-the-difference-betwe= en-and-in-a-cmd-file > for the reason. (I'll just add that to the list of reasons I dislike > Windows command line. But the main reason is I'm more used to sh/ksh/bas= h.) > > On Thu, 28 May 2020 at 01:36, tsepp2000@web.de wrote: > >> 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 =E2=80=9Ccmd= =E2=80=9D in the >> > address field >> > >> > 2) set the audiodriver=3Dwaveaudio >> > >> > 3) then I use sox/play/rec >> > >> > I don=E2=80=99t 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 for >> > Windows 10 >> > >> > *From: *tsepp2000@web.de >> > *Sent: *Wednesday, 27 May 2020 14:31 >> > *To: *Nils Wallgren >> > *Cc: *sox-users@lists.sourceforge.net >> > >> > *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: >> > >> > =E2=80=9CC:\sox.exe"' is not recognized as an internal or external= command=E2=80=9D >> > >> _______________________________________________ >> Sox-users mailing list >> Sox-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sox-users >> > --000000000000297a7405a6b5feda Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
BTW, if you have more Windows cmd issues, I highly re= commend joining and asking at http://s= tackoverflow.com which is a better place for generic questions.=C2=A0 O= f course, at first you didn't know whether your issues were sox issues = (and one of them was.)=C2=A0 Just pointing out a great resource for that ki= nd of question.=C2=A0 They can also answer sox questions there.=C2=A0
<= /div>


= On Thu, 28 May 2020 at 10:07, Jeff Learman <jjlearman@gmail.com> wrote:
%%~Ni returns the base = filename (without directory or extension) for %%i, if %%i is the index in a= FOR loop.=C2=A0 See https:= //stackoverflow.com/questions/3432851/dos-bat-file-equivalent-to-unix-basen= ame-command for more info.=C2=A0 Look at the second answer down, which = has a list for what "%~xi" does for different letters x.=C2=A0 Ap= parently it's case-insensitive.=C2=A0 Also, the for is different in a b= atch file than on the command line, "%%" versus "%", se= e https://stackoverflow.co= m/questions/14509652/what-is-the-difference-between-and-in-a-cmd-file f= or the reason.=C2=A0 (I'll just add that to the list of reasons I disli= ke Windows command line.=C2=A0 But the main reason is I'm more used to = sh/ksh/bash.)

On Thu, 28 May 2020 at 01:36, tsepp2000@web.de <tsepp2000@web.de> wrote:
If the place of Sox is &quo= t;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&qu= ot;):
- 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 =E2=80=9Ccmd= =E2=80=9D in the
> address field
>
> 2) set the audiodriver=3Dwaveaudio
>
> 3) then I use sox/play/rec
>
> I don=E2=80=99t 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/fw= link/?LinkId=3D550986> for
> Windows 10
>
> *From: *tsepp200= 0@web.de <mailto:tsepp2000@web.de>
> *Sent: *Wednesday, 27 May 2020 14:31
> *To: *Nils Wallgren <mailto:affarer@hotmail.com>
> *Cc: *sox-users@lists.sourceforge.net
> <mailto:sox-users@lists.sourceforge.net>
> *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&qu= ot;
>
> Regards
> Thomas
>
> Am 27.05.2020 um 11:48 schrieb Nils Wallgren:
>
>=C2=A0 =C2=A0 =C2=A0=E2=80=9CC:\sox.exe"' is not recognized as= an internal or external command=E2=80=9D
>
_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
--000000000000297a7405a6b5feda-- --===============4481115564627526218== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4481115564627526218== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============4481115564627526218==--