2015-06-09, 07:20 PM
I'm at witt's end here so hopefully someone can help. I have this peace of code in PostProcessing.bat:
In short, the code produces a batch file, Convert.bat, which is copied to a remote computer (Taurus), the purpose of this bat is to convert an mpeg2 recording to h.264. The conversion batch is written and works beautifully, the file is copied to the remote computer with no problems. BUT, the PsExec call does nothing when called from PostProcessing when Nrecord starts it.
I can execute PsExec with all the parameters manually in a command prompt and it works great. So I thought, wait a minute, Nrecord is a service, maybe it is not allowed to run PsExec (I should add that Nrecord runs as my user and not the local system account). So I tried to run Nrecord in a command prompt with "Nrecord RUN". No dice, the PostProcessing runs but not PsExec. I tried both with "Run as Administrator" and without.
So, I try to run PostProcessing with all its parameters from a command prompt, and VIOLA, PsExec works.
Sub, does Nrecord run PostProcessing with any limitations with regard to privileges or something like that?? Anyone else have a clue?:confused:
Code:
set iFN="\\Sirius\sirius$H%~pnx1"
set oFN="\\Sirius\sirius$H%~pn1.avi"
set SRT="\\Sirius\sirius$H%~pn1.default.srt"
echo C:\ffmpeg\bin\ffmpeg.exe -analyzeduration 2147483647 -probesize 2147483647 -y -i %iFN% -vcodec libx264 -preset fast -acodec copy %oFN%>c:\Users\Public\npvr\scripts\Convert.bat
copy c:\Users\Public\NPVR\Scripts\Convert.bat \\Taurus\Users\Public\NPVR\Scripts\
C:\windows\system32\psexec \\Taurus -d -c -e -h -f -u xxxxxx -p xxxxxx -w C:\Users\Public\NPVR\Scripts C:\Users\Public\NPVR\Scripts\Convert.bat
I can execute PsExec with all the parameters manually in a command prompt and it works great. So I thought, wait a minute, Nrecord is a service, maybe it is not allowed to run PsExec (I should add that Nrecord runs as my user and not the local system account). So I tried to run Nrecord in a command prompt with "Nrecord RUN". No dice, the PostProcessing runs but not PsExec. I tried both with "Run as Administrator" and without.
So, I try to run PostProcessing with all its parameters from a command prompt, and VIOLA, PsExec works.
Sub, does Nrecord run PostProcessing with any limitations with regard to privileges or something like that?? Anyone else have a clue?:confused:
"I'd rather have a bottle in front of me than a frontal lobotomy"