NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 82 83 84 85 86 … 102 Next »
Script to delay NPVRtray running

 
  • 0 Vote(s) - 0 Average
Script to delay NPVRtray running
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#1
2020-06-09, 06:07 PM
My PC has been suffering from intermittent NPVR tray issues, almost 50% of the time after reboot the tray is grey and the program does not detect my two tuners even after installing the patched NShared.dll.

The problem appears to be due to NPVRtray.exe running  too quickly during the boot process.

My amateur solution is as follows :-

1. Disable or remove the NPVRtray.exe entry from the Windows 10 startup group. 

2. Go to C:\Users\"your pc name"\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

(To directly access this folder, open Run, type shell: startup and hit Enter).

3. Create a new text file and name it StartupOrder.bat

4.Edit the file and type in the following text.

@ECHO OFF

TIMEOUT /T 2
REM Total Delay = boot time plus 2 seconds
START "" "C:\Program Files\NextPVR5\NPVRTray.EXE"

Reboot PC to test.

Maurice
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2020-06-10, 12:30 AM
Here is a batch script that (in a loop) waits several seconds for the recording service to start, then launches (if started).  Make sure your location of NPvrTray.exe is accurate.

Code:
@Echo off
GoTo :BEGIN
=============================================================================
Checks if NextPVR service is running, then launches NextPVR Tray
=============================================================================
:BEGIN
    Set NextPVR_SVC="NextPVR Service"
    Set NextPVR_TRAY="C:\Program Files\NPVRv5\NPvrTray.exe"
    Set DELAY=ping -n 1 -w 500 bozo
    Set CNT=0

    if not exist %NextPVR_TRAY% (
        Echo NPvrTray executable NOT found.  Please update script.
        Echo %NextPVR_TRAY%
        GoTo :ENDJOB
    )

:CHK_SVC
    echo delay...
    %DELAY% 2>&1 > NUL
    echo check svc...
    @Echo on
    sc query %NextPVR_SVC% | FindStr "RUNNING" > NUL
    @Echo off
    If %ERRORLEVEL% EQU 0 (
        Start "" %NextPVR_TRAY%
        Echo NextPVR Tray launched.
        GoTo :ENDJOB
    )
    Set /A CNT = CNT + 1
    if %CNT% LEQ 5 GoTo :CHK_SVC
    Echo Sorry, %NextPVR_SVC% Not running and wait time out...

:ENDJOB
    echo.
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#3
2020-06-10, 12:43 PM
Thanks
I am receiving an error when posting from desktop see below.

   


I am obviously doing something wrong.

Regards

Maurice
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#4
2020-06-10, 02:09 PM
(2020-06-10, 12:43 PM)hansol123 Wrote: Thanks
I am receiving an error when posting from desktop see below.

Did you get this running the script from javawiz?  He is also batchwiz ... the script is a batch file and should be saved as blah.bat or blah.cmd.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,117
Threads: 957
Joined: May 2006
#5
2020-06-10, 02:26 PM
I suspect the real solution is just to wait for sub to fix the tray app properly.

Martin
hansol123
Offline

Member

Posts: 245
Threads: 44
Joined: Feb 2008
#6
2020-06-10, 02:27 PM
Thanks very much.

It is now running as a batch file.

I was trying to run it with a Java extension.

It would be useful if this script was built into the next release.

Thanks again.

Maurice
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  server service not running Brucek2839 1 135 2025-06-19, 01:17 PM
Last Post: mvallevand
  EPG Script Error? RedDevilJoe 4 401 2025-02-01, 01:16 AM
Last Post: RedDevilJoe
  Subtitle delay issue dshoup 4 520 2024-10-27, 07:55 PM
Last Post: mvallevand
  Script to Run "Update Channels"? AWR2375 4 753 2024-09-23, 01:21 PM
Last Post: AWR2375
Information failed recordings: operation timed out or recording service not running jobby99 1 341 2024-09-23, 01:48 AM
Last Post: mvallevand
  Where do I change the update EPG delay time in Version: 6.1.5.231022 Yrthix 2 549 2024-07-27, 06:11 AM
Last Post: Yrthix
  Some recordings fail with server not running nikkilocke 12 1,439 2024-02-29, 01:15 AM
Last Post: mvallevand
  recording service not running at recording time arlingtoner 17 2,318 2024-01-14, 12:40 AM
Last Post: mvallevand
  Occasional delay during skip/playback artmetz 11 1,449 2023-11-11, 03:29 PM
Last Post: artmetz
  NPVRTray.exe and power requests fla 9 1,455 2023-06-30, 01:04 PM
Last Post: fla

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode