NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 142 143 144 145 146 … 433 Next »
Can't get POSTSTARTUP.BAT to activate

Can't get POSTSTARTUP.BAT to activate
Lone_Stranger
Offline

Member

Posts: 83
Threads: 25
Joined: Aug 2015
#1
2016-02-14, 07:01 AM
Sub, I built a test version of PostStartup.bat and placed it into the SCRIPTS folder, but it appears that it never activates.

NPVR version was dpwnloaded on 12-20.

Must I do something else? Please advise.
[SUB]NPVR 4.2.4 (190307) OTA with Win7 Ultimate & Win10 Pro, Hauppauge Quad PCI, Schedules Direct.[/SUB]
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#2
2016-02-14, 09:38 AM
I'd post logs so we can see if it has been called.
Also bear in mind that unless you have changed things, it will be run as the SYSTEM user and will not have an environment like a normal user - no paths etc. If you want to run executables you have to use the full path to them.
When debugging npvr bat files I usually use comments, such as

Code:
@echo off
c:
cd c:\users\public\npvr\scripts
echo %time:~0,-3% Start: PostProcessing.bat invoked on %1 recorded from channel %2 >>postprocessing.log
cscript //nologo "C:\Program Files (x86)\VideoReDoTVSuite4\vp.vbs" "%~dpn1.ts" "%~dpn1.mpg" "/p:MPEG2 Program Stream" /q
Lone_Stranger
Offline

Member

Posts: 83
Threads: 25
Joined: Aug 2015
#3
2016-02-14, 02:55 PM
After checking the logs, it appears that PostStartup.bat did indeed execute.

Thanks again, Martin.
[SUB]NPVR 4.2.4 (190307) OTA with Win7 Ultimate & Win10 Pro, Hauppauge Quad PCI, Schedules Direct.[/SUB]
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#4
2016-02-15, 10:00 AM
Lone_Stranger Wrote:After checking the logs, it appears that PostStartup.bat did indeed execute.

Although the logs won't show if the contents of the batch files executed - hence why I scatter "echo"s around.
Running the batch files manually are no guarantee either because of the different environments
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,159
Threads: 958
Joined: May 2006
#5
2016-02-15, 01:14 PM
martint123 Wrote:Running the batch files manually are no guarantee either because of the different environments

Sysinternals provide a good tool psexec that allows you to open a system command prompt easily

psexec -i -s cmd.exe

It can be useful looking at shares, rights etc.

Martin
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#6
2016-02-16, 09:20 AM
mvallevand Wrote:Sysinternals provide a good tool psexec that allows you to open a system command prompt easily

They provide many extremely useful tools. My problem is I don't use them often enough to remember what they all are and what they can do! (ever since regmon and filemon became over-complicated processmonitor Wink
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode