PDA

View Full Version : Continual resume in cmd


NightKid
09-02-2016, 01:11 AM
This may be more of a command prompt question than anything, but I am using rtmpdump to download a file and the connection keeps getting lost every now and then. It's a pain to keep copy/pasting the line into cmd and monitor my download. I want to be able to leave my computer on on overnight without the download stopping.

Is there a way that I can make it so that my rtmpdump line is input into cmd when it stops? This is what I'm inputting FWIW:

rtmpdump -r -a -f -W -p -y -o --realtime --resume --buffer 72000000

ihryjfbd
09-02-2016, 08:27 PM
:loop
rtmpdump -r -a -f -W -p -y -o --realtime --resume --buffer 72000000
goto loop

NightKid
09-02-2016, 09:49 PM
Cool! Thanks!

Any way to stop the looping once the file is finished downloading? Is it some kind of echo command? I'm not too good with cmd so any help would appreciated again. Thank you.