Detect if recording

Chat with other TGB members about whatever is on your mind.
Post Reply
Will_Cain

Posts: 19
Joined: Mon Jun 25, 2012 9:13 pm
Location:

HTPC Specs: Show details

Detect if recording

#1

Post by Will_Cain » Fri Jan 05, 2018 5:27 pm

Any of you guys and ladies know of a way to see if a recording is being made in a batch file?

Cheers and happy New Year

Space

Posts: 2838
Joined: Sun Jun 02, 2013 9:44 pm
Location:

HTPC Specs: Show details

#2

Post by Space » Sat Jan 06, 2018 12:02 am

One way is to see if WMC has told your system to not sleep because it is recording or about to record using the "powercfg -requests" command.

This thread has a script that uses this command to tell if there are any recordings in progress and if not, to reboot the PC or the HDHomerun Prime:

viewtopic.php?f=6&t=5927

Will_Cain

Posts: 19
Joined: Mon Jun 25, 2012 9:13 pm
Location:

HTPC Specs: Show details

#3

Post by Will_Cain » Sun Jan 07, 2018 10:27 am

Thanks for the reply. All I was trying to do was improve my sleep shortcut so that it didn't chop off a recording. Using one of the tips in the huge post I've now managed to do this. The only thing I struggled with was not realising the shortcut had to run as an Admin.

Thanks for the help

Post Reply