Record from command-line but wait before returning.

GoldWave general discussions and community help
Post Reply
n9ds
Posts: 4
Joined: Sat Sep 05, 2015 11:54 am

Record from command-line but wait before returning.

Post 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?
GoldWave Inc.
Site Admin
Posts: 4375
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

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

Post 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.
n9ds
Posts: 4
Joined: Sat Sep 05, 2015 11:54 am

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

Post 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
Post Reply