Page 1 of 1

Record from command-line but wait before returning.

Posted: Wed Aug 07, 2019 4:45 pm
by n9ds
My subject is unclear, I apologize. I hope my explanation is better.

I have a long-running stream and I want to automate recording it to .mp3 files. This command works great:

goldwave -new(32400):c:\dest\gw1.mp3 -record -close

What I'd like to do is set up a loop like this:

for /l %n in (1,1,14) do goldwave -new(32400):c:\dest\gw%n.mp3 -record -close

What I was expecting was that it would start Goldwave, record 9 hours to gw1.mp3, exit then start a second instance of Goldwave, record 9 hours to gw2.mp3 and so on. Since control immediately returned to the command prompt, instead what happened was that I wound up with 14 instances of Goldwave all recording simultaneously.

I can't simply kick it off every 9 hours because the recording is level triggered, and a drop in the stream means that a 9 hour file may take much longer than 9 hours to record.

Any suggestions?

Re: Record from command-line but wait before returning.

Posted: Wed Aug 07, 2019 11:30 pm
by GoldWave Inc.
You may be able to use the "start /wait goldwave ... " on the command line to start GoldWave and wait for it to terminate.

Re: Record from command-line but wait before returning.

Posted: Fri Aug 09, 2019 2:31 pm
by n9ds
GoldWave Inc. wrote:You may be able to use the "start /wait goldwave ... " on the command line to start GoldWave and wait for it to terminate.
That's exactly what I was looking for. And for good measure I threw in a -nosplash, and it's doing exactly what I wanted.

Thanks