2011-07-24, 02:14 AM
Ok, the end goal is to do a bit of post processing with handbrake and then copy the newly created .mp4 to a network share.
I've found several scripts which would fit the bill and with a bit of modification, they work great for renaming and post processing to .mp4. Got all that working fine.
The copy part has me stumped. For the life of me, I can't get it to copy the file to the network share.
Just to eliminate all the variables, I made a completely stripped down PostProcessing.bat with just the copy command and a little logging so i could track it. I got it to work form the command line, but it doesn't work from the post processing after recording a file. The output from the log file works fine in cmd too, so I think it's right.
What am I doing wrong?
PostProcessing.bat
----------------------------------
@ECHO on
ECHO postprocessing started on %date% %time% >> postprocessing.log
set NSHelper=C:\Progra~1\NPVR\NScriptHelper.exe
ECHO xcopy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV" >> postprocessing.log
xcopy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV"
ECHO Post Processing finished on %date% %time% >> postprocessing.log
:end
echo Finished.
----------------------------------
postprocessing.log results
----------------------------------
postprocessing started on Sat 07/23/2011 21:50:01.04
xcopy "D:\Manual Recordings\Default_20110723_21492150.ts" "Z:\Movies-Video-DVDs\Recorded_TV"
Post Processing finished on Sat 07/23/2011 21:50:01.09
----------------------------------
I've found several scripts which would fit the bill and with a bit of modification, they work great for renaming and post processing to .mp4. Got all that working fine.
The copy part has me stumped. For the life of me, I can't get it to copy the file to the network share.
Just to eliminate all the variables, I made a completely stripped down PostProcessing.bat with just the copy command and a little logging so i could track it. I got it to work form the command line, but it doesn't work from the post processing after recording a file. The output from the log file works fine in cmd too, so I think it's right.
What am I doing wrong?
PostProcessing.bat
----------------------------------
@ECHO on
ECHO postprocessing started on %date% %time% >> postprocessing.log
set NSHelper=C:\Progra~1\NPVR\NScriptHelper.exe
ECHO xcopy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV" >> postprocessing.log
xcopy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV"
ECHO Post Processing finished on %date% %time% >> postprocessing.log
:end
echo Finished.
----------------------------------
postprocessing.log results
----------------------------------
postprocessing started on Sat 07/23/2011 21:50:01.04
xcopy "D:\Manual Recordings\Default_20110723_21492150.ts" "Z:\Movies-Video-DVDs\Recorded_TV"
Post Processing finished on Sat 07/23/2011 21:50:01.09
----------------------------------