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_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 0E5421F55B for ; Fri, 29 May 2020 12:25:03 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jee4C-00009s-OG; Fri, 29 May 2020 12:24:52 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jee47-00008i-EG for sox-users@lists.sourceforge.net; Fri, 29 May 2020 12:24:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:In-Reply-To:References: Message-ID:Date:Subject:To:From: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=UUaWbj20+csnRI3CmxeHcgOoMCCYSgn+qak4X1VktBA=; b=JiL+PcvO53QBY+E5skcQYzTGIl 0TRkM6AsH5L0DpiCqUXKt/ar4OdPTEGxCfR/BcYKewfEbayVLn7Gk7spMlh8fhp22DaOLdeIjWsmW uJZPdVjh1alGJNcnlCCICR/cf/U3/n9qV+kLu5r8+SM1bkUanPew/O8RTgaq6kheDdgc=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:In-Reply-To:References:Message-ID:Date:Subject: To:From: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=UUaWbj20+csnRI3CmxeHcgOoMCCYSgn+qak4X1VktBA=; b=jehBv04KWPgHYYXVSCicKHY3gO RL7Qeo4jy3fk2pUiK2QyyoO5OT4rl6SG6zk5K+03gIDIIJbeysi6Ugmm8c21FgOp6oDf9pIKZey2L UEaeuaadjHM2JrVXPKt7mAVC48S21mhMZtb8CDo3oaowPKcM+FHe8gLXEgAG3HkOY8YM=; Received: from mail-oln040092069057.outbound.protection.outlook.com ([40.92.69.57] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jee41-002flS-Ab for sox-users@lists.sourceforge.net; Fri, 29 May 2020 12:24:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VxuPYMTcUYLOP6tFwyI3H/QpGPXA53f0x/jbz4/NKTjp+UUWTnmfyFK5350Sf9Ki+AqA6I/E4fcoKA9/gP6X+jPvevZoTzKV3WJJjlwKL9Lm6zcs6X1UXyZ8fzqSX1weq4aw2C1W8cEr7ebMmlmUg6c+C3EbS0KxPD4SCvBVpMR36bBxTULsuQDFqJxJQDnfvlUnZaTstLUB36DNHwif1CTxXQye+YeXUTvTrGNBqvXIigFS5m3PxyrcvhkxPoD7AfVtZoUzQFHqxWTbvIXa81vxOfuEVyYUDivhiIVBl9gcotIt8DS1IZptgUR8zGyV72IKuTN5Y/079SCL5cENSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UUaWbj20+csnRI3CmxeHcgOoMCCYSgn+qak4X1VktBA=; b=WWH3djgy6E2yHchN3GrBV4Ub87L+arO3PhQPepMjpaqkK/XSkmyRWPQR9yvd3kFmMK7k+8pn9q08QmkiLgxtMviCr++YXd5fg0oLkn78szFA6wqf5o9ywBKI6DZX9B0NWh4w/3cWJkJKTLryV/X5WnHfY8wIwaDr7l5W7oCq6O2big9sAcfvjr4zAi+SuooJ5EIt0Y6Zihmco+EHHZdwRAzkcLoI5DnElN6p5Ar5Qo4noKgT5k3HDJdba4r47bqIacZGaqjeHEjunGQjhxiD3s9ymNjYaiw2WwItuiu59T7/ilyj05ZcKs8wKnvTs3i5ad6tjaGbqUtlzwu8A20Mbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UUaWbj20+csnRI3CmxeHcgOoMCCYSgn+qak4X1VktBA=; b=Wv3sYaeJmdAtPfL9kt0f8Pe4raT5c3K/lUmrtN3gadFlChnz3VvNHJt9L0emMAGMkRYw/BnQQ6X9hxmp9ez2ZG2qlYjDEes+Zm+BIGw0IY2DcOaqXF79ib2wLF7671Yx4grMRaaeZlelRYVUlM23BMTjTJnqVitPSmQoI3ZE/LH4WtSb9LlmmH0udg7xgd7TN5te8BXyxrF9FlI1XfrHyT+vXXM5lzt/ZvXOQOjE15vLVoaHi7JGzTyXa/Gh5mB7pDSLC5OhgA7jYsSQ0RZez7K7HvGnHAmsFcZymK3aRY1sDPHNwlYWZLenFhFCtBg2KgbIq9RhSH6OVB6UJcNJhw== Received: from HE1EUR02FT044.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::48) by HE1EUR02HT124.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::366) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17; Fri, 29 May 2020 12:24:11 +0000 Received: from HE1PR0102MB3225.eurprd01.prod.exchangelabs.com (2a01:111:e400:7e1d::51) by HE1EUR02FT044.mail.protection.outlook.com (2a01:111:e400:7e1d::331) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17 via Frontend Transport; Fri, 29 May 2020 12:24:11 +0000 Received: from HE1PR0102MB3225.eurprd01.prod.exchangelabs.com ([fe80::6432:698e:9b0b:4689]) by HE1PR0102MB3225.eurprd01.prod.exchangelabs.com ([fe80::6432:698e:9b0b:4689%3]) with mapi id 15.20.3021.031; Fri, 29 May 2020 12:24:11 +0000 From: Nils Wallgren To: "sox-users@lists.sourceforge.net" Thread-Topic: [SoX-users] BatchProcessing Files on Windows Thread-Index: AQHWM6uwj7/NdXt6EUCSeQ3IbMcrTai7EkAAgABt9zKAABwrM4AAAghPgAA/ywCAAA04doABEMeAgACPCgCAAALigIABchhA Date: Fri, 29 May 2020 12:24:11 +0000 Message-ID: References: <173dc6c3-ff96-e8b7-a072-3d3f84220e5d@bayern-mail.de> <13d91385-87d0-635e-aa10-5a0cdbe11b50@web.de> , In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: aa X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:1AF6A784D4C9DAB75E9BC998CF1A11E662E1D8585B916ED64B759B2E31F008BB; UpperCasedChecksum:0CAC390FAE96063BD4C6E72B21BE94938942872ED5AC0B74484E87B3D4490B47; SizeAsReceived:7580; Count:44 x-tmn: [37EV6+H247ur137tmLVDcqrLRtUZk2VO] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 98297c4c-2e7e-4cbf-c04d-08d803cb31ac x-ms-traffictypediagnostic: HE1EUR02HT124: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: alAj3b2tmp6qhihkuagwlssw6NARSQDrKuUL18BhxTocsfLMV0Li0NkjR8yZ9OPWd26HmZ8SJDo7TlExTMXzfU9wvK1tqJw8kS2lxi0EheXg+Xte8kJjwMKeEu8weMkfha9VBB7+Gp3jpODdCfQvI/ImNy0sDNBN2+eKD35yaXykAcKp8tEii4vv5Ehk/2QFE//58y0ksZA1OP+DorYw7cGPsOVhd5viAvilpVVvaNMuLx7FEYUYT8shptEXoe/e x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0102MB3225.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: g+oceQUc5Qz4BoNlDrz/DwzUxfZQZWR/4e70v3phiPwVMWQ0J2hHpP66IKjUrNlmNenfRcvhL8bJ/5Y2cn3uXnSRzNONyEvzJUogAljcToY4iFdQwxbvesGBt7kbGh2x+/lVJ+FOIHI5IKqoIPwhQw== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 98297c4c-2e7e-4cbf-c04d-08d803cb31ac X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2020 12:24:11.8715 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT124 X-Headers-End: 1jee41-002flS-Ab 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="===============5661560842345458598==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============5661560842345458598== Content-Language: aa Content-Type: multipart/alternative; boundary="_000_HE1PR0102MB32252AF5812C1D010E2A2B4AAA8F0HE1PR0102MB3225_" --_000_HE1PR0102MB32252AF5812C1D010E2A2B4AAA8F0HE1PR0102MB3225_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks so much for the help. I guess a lot of the things were kind of basic= and made it confusing what I was asking for. I am really glad I got it to = work Sent from Mail for Window= s 10 From: Jeff Learman Sent: Thursday, 28 May 2020 16:19 To: sox-users@lists.sourceforge.net Subject: Re: [SoX-users] BatchProcessing Files on Windows BTW, if you have more Windows cmd issues, I highly recommend joining and as= king at http://stackoverflow.com which is a better place for generic questi= ons. Of course, at first you didn't know whether your issues were sox issu= es (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, i= f %%i is the index in a FOR loop. See https://stackoverflow.com/questions/= 3432851/dos-bat-file-equivalent-to-unix-basename-command for more info. Lo= ok at the second answer down, which has a list for what "%~xi" does for dif= ferent letters x. Apparently it's case-insensitive. Also, the for is diff= erent in a batch file than on the command line, "%%" versus "%", see https:= //stackoverflow.com/questions/14509652/what-is-the-difference-between-and-i= n-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/k= sh/bash.) 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 =93cmd=94 in the > address field > > 2) set the audiodriver=3Dwaveaudio > > 3) then I use sox/play/rec > > I don=92t 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: > > =93C:\sox.exe"' is not recognized as an internal or external command= =94 > _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --_000_HE1PR0102MB32252AF5812C1D010E2A2B4AAA8F0HE1PR0102MB3225_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Thanks so much for the help. I = guess a lot of the things were kind of basic and made it confusing what I w= as asking for. I am really glad I got it to work

 

 

Sent from Mail for Windows 10

 

From: Jeff Learman
Sent: Thursday, 28 May 2020 16:19
To: sox-users@lis= ts.sourceforge.net
Subject: Re: [SoX-users] BatchProcessing Files on Windows

 

BTW, if you have more Windows cmd issues, I highly r= ecommend 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 <jjlearman@gmail.com> wrote:

%%~Ni returns the base filename (without directory o= r extension) for %%i, if %%i is the index in a FOR loop.  See https://stackoverflow.com/questions/3432851/dos-bat-file-equivalent-to-unix= -basename-command for more info.  Look at the second answer down, = which has a list for what "%~xi" does for different letters x.&nb= sp; Apparently it's case-insensitive.  Also, the for is different in a batch file than on the command line, "%%" vers= us "%", see https://stackoverflow.com/questions/14509652/what-is-the-difference-between= -and-in-a-cmd-file for the reason.  (I'll just add that to the lis= t of reasons I dislike Windows command line.  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 &= quot;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 =93cmd=94 in t= he
> address field
>
> 2) set the audiodriver=3Dwaveaudio
>
> 3) then I use sox/play/rec
>
> I don=92t 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=3D5509= 86> 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:
>
>     =93C:\sox.exe"' is not recognized as an intern= al or external command=94
>
_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users=

 

--_000_HE1PR0102MB32252AF5812C1D010E2A2B4AAA8F0HE1PR0102MB3225_-- --===============5661560842345458598== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============5661560842345458598== 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 --===============5661560842345458598==--