2019-09-08, 08:44 PM
I put the following code into a PostProcessing.bat file in C:\Users\Public\NPVR-data\scripts:
If I run it manually by double clicking it it appends "Finished recording (space) at (current time) on (current date)" into the specified file and pops-up a balloon notification that says the same thing. When it's run by NPVR after a recording finishes it writes the recorded file's name (with path) and the time and date the recording finished to the file but there is no notification. Any ideas why?
Code:
@echo off
echo Finished recording %1 at %time% on %date% >> C:\Users\ron\Desktop\finished.txt
set Icon=Information
powershell -Command "[void] [System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms'); $objNotifyIcon=New-Object System.Windows.Forms.NotifyIcon; $objNotifyIcon.BalloonTipText='Finished recording %1 at %time% on %date%'; $objNotifyIcon.Icon=[system.drawing.systemicons]::%Icon%; $objNotifyIcon.BalloonTipTitle='NPVR'; $objNotifyIcon.BalloonTipIcon='None'; $objNotifyIcon.Visible=$True; $objNotifyIcon.ShowBalloonTip(60000);"
If I run it manually by double clicking it it appends "Finished recording (space) at (current time) on (current date)" into the specified file and pops-up a balloon notification that says the same thing. When it's run by NPVR after a recording finishes it writes the recorded file's name (with path) and the time and date the recording finished to the file but there is no notification. Any ideas why?
Intel Core i7-4790 / 32GB RAM / Windows 10 Pro 64 bit / HDHomeRun CONNECT DUO Model: HDHR5-2US